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

ADOP-2605 - Nightly Test pipeline fix #1615

Merged
merged 5 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions playwright-e2e/helpers/e2eJourneyHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export async function citizenAdoptionSignInWithNoPartner(
userPassword: string,
locator: string
): Promise<void> {
await app.signIn.navigateTo();
await app.signIn.signIn(userEmail, userPassword);
await app.numberOfApplicants.numberOfApplication(locator);
await app.numberOfApplicants.fillNotSpouseOrCivilPartnerDetails('Text to be randomly generated');
Expand All @@ -19,6 +20,7 @@ export async function citizenAdoptionSignInWithPartner(
userPassword: string,
locator: string
): Promise<void> {
await app.signIn.navigateTo();
await app.signIn.signIn(userEmail, userPassword);
await app.numberOfApplicants.numberOfApplication(locator);
await app.basePage.clickSaveAndContinue();
Expand Down
2 changes: 1 addition & 1 deletion playwright-e2e/pages/reviewSubmit.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class ReviewSubmit extends BasePage {
await expect(this.cardDetailsH1).toBeVisible();
await expect(this.cost).toBeVisible();
await this.cardNumber.fill('4444333322221111');
await this.expMonth.fill(`${today.getMonth()}`);
await this.expMonth.fill(`${today.getMonth() + 1}`);
await this.expYear.fill(`${today.getFullYear() + 2}`);
await this.cardName.fill(name);
await this.securityCode.fill('123');
Expand Down
1 change: 1 addition & 0 deletions playwright-e2e/tests/smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test.describe('smoke test', () => {
const appOneName = await app.applicantOneNameCreate();
const childNames = await app.childNameCreate();

await app.signIn.navigateTo();
await app.signIn.signIn(userEmail, userPassword);
await app.numberOfApplicants.numberOfApplication(applicantNumber);
await app.basePage.clickSaveAndContinue();
Expand Down