Skip to content

Commit

Permalink
FHB-1113: E2E Automated Tests: Adding Users in Manage as Dfe Admin (#343
Browse files Browse the repository at this point in the history
)

* refactor: added data test id to agree t&c continue button

* refactor: added data test ids to continue buttons

* refactor: changed apostrophe format

* refactor adding data test id to another continue button

* refactor adding data test id to another continue button

* test: renamed test repo

* refactor: removed old manage e2e test folder

---------

Co-authored-by: Tina Gohil <[email protected]>
  • Loading branch information
tgohil-hippo and Tina Gohil authored Jan 7, 2025
1 parent 470d465 commit 6e483ac
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</div>
</fieldset>
</div>
<button type="submit" class="govuk-button" data-module="govuk-button">
<button type="submit" class="govuk-button" data-testid="buttonContinue" data-module="govuk-button">
@Model.ButtonText
</button>
</form>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
navigateToManage,
clickOnTheStartButton,
loginToManage,
loginToTestEnvironment, isTheManageHomepageDisplayed
loginToTestEnvironment,
isTheManageHomepageDisplayed
} from './serenity-tools/manage-index';

describe('Manage Tests', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Navigate, Click, Enter } from '@serenity-js/web';
import {startButton, continueButton, emailField, passwordField, signInButton} from "./gov-login-page-objects";

export const loginToTestEnvironment = (): Task =>
Task.where( `#actor logs into test environment with ${process.env.USER_NAME} and ${process.env.USER_NAME}`,
Task.where( `#actor logs into test environment`,
Navigate.to(`https://${process.env.USER_NAME}:${process.env.PASSWORD}@signin.integration.account.gov.uk/?prompt=login`)
);
export const navigateToManage= (): Task =>
Expand All @@ -18,7 +18,7 @@ export const clickOnTheStartButton = (): Task =>
);
export const loginToManage = (userType: Answerable<string>): Task =>
Task.where(
`#actor logs into manage with a gov login email ${userType} and password ${process.env.GOV_LOGIN_PASSWORD}`,
`#actor logs into manage with a gov login email and password`,
Click.on(signInButton()),
Enter.theValue(process.env.DFE_ADMIN_USER).into(emailField()),
Click.on(continueButton()),
Expand Down

0 comments on commit 6e483ac

Please sign in to comment.