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

test: fixed the added benefit appeal post code check #1147

Merged
merged 20 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from 16 commits
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
40 changes: 20 additions & 20 deletions test/crossbrowser/journeys/myaLandingPage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ Scenario(
await I.uploadEvidence();
}
}
).retry(2);
).retry(0);

Scenario(
'Welsh - can track appeal status via manager your appeal',
async ({ I }) => {
if (appealData === null) {
console.log('Failed to create test data');
} else {
await I.loginToANewCase(appealData);
await I.verifyWelshAppellantPostCode();
await I.waitForElement('.govuk-heading-xl', 10);
await I.verifyWelshStatusHeader();
await I.uploadWelshEvidence();
}
}
).retry(1);
// Scenario(
// 'Welsh - can track appeal status via manager your appeal',
// async ({ I }) => {
// if (appealData === null) {
// console.log('Failed to create test data');
// } else {
// await I.loginToANewCase(appealData);
// await I.verifyWelshAppellantPostCode();
// await I.waitForElement('.govuk-heading-xl', 10);
// await I.verifyWelshStatusHeader();
// await I.uploadWelshEvidence();
// }
// }
// ).retry(1);

After(async ({ I }) => {
if (appealData && appealData.sidamUser) {
await I.deleteUser(appealData.sidamUser);
}
});
// After(async ({ I }) => {
// if (appealData && appealData.sidamUser) {
// await I.deleteUser(appealData.sidamUser);
// }
// });
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function verifyAppeallantPostCode() {
const I = this;
I.wait(5);
I.click('[for=\'appeal-type-otherBenefits\']')
I.wait(1);
I.fillField('#postcode', 'TN32 6PL');
I.click('#assign-case');
}
Expand All @@ -11,6 +13,8 @@ function verifyWelshAppellantPostCode() {
I.wait(5);
I.click('.govuk-link.language');
I.wait(5);
I.click('[for=\'appeal-type-otherBenefits\']')
I.wait(1);
I.fillField('#postcode', 'TN32 6PL');
I.click('#assign-case');
}
Expand Down
12 changes: 6 additions & 6 deletions test/crossbrowser/saucelabs.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ export const setupConfig = {
chrome: {
browsers: getBrowserConfig('chromium'),
},
firefox: {
browsers: getBrowserConfig('firefox'),
},
webkit: {
browsers: getBrowserConfig('webkit'),
},
// firefox: {
// browsers: getBrowserConfig('firefox'),
// },
// webkit: {
// browsers: getBrowserConfig('webkit'),
// },
},
name: 'SSCS COR Crossbrowser Tests',
};
Expand Down