Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nts loa and SIT flaky fix int #13613

Merged
merged 4 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ test.describe('Services counselor user', () => {
// Fill out the HHG and NTS accounting codes
await page.getByTestId('hhgTacInput').fill(tac.tac);
const today = new Date();
const formattedDate = new Intl.DateTimeFormat('en-GB', {
day: '2-digit',
month: 'short',
year: 'numeric',
}).format(today);
const day = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(today);
const month = new Intl.DateTimeFormat('en', { month: 'short' }).format(today);
const year = new Intl.DateTimeFormat('en', { year: 'numeric' }).format(today);
const formattedDate = `${day} ${month} ${year}`;

await page.locator('input[name="issueDate"]').fill(formattedDate);

await page.getByTestId('hhgSacInput').fill('4K988AS098F');
Expand Down
10 changes: 5 additions & 5 deletions playwright/tests/office/txo/tooFlowsNTS.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ test.describe('TOO user', () => {
// Fill out the HHG and NTS accounting codes
await page.getByTestId('hhgTacInput').fill(tac.tac);
const today = new Date();
const formattedDate = new Intl.DateTimeFormat('en-GB', {
day: '2-digit',
month: 'short',
year: 'numeric',
}).format(today);
const day = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(today);
const month = new Intl.DateTimeFormat('en', { month: 'short' }).format(today);
const year = new Intl.DateTimeFormat('en', { year: 'numeric' }).format(today);
const formattedDate = `${day} ${month} ${year}`;

await page.locator('input[name="issueDate"]').fill(formattedDate);

await page.getByTestId('hhgSacInput').fill('4K988AS098F');
Expand Down
Loading