-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FHB-1113: E2E Automated Tests: Adding Users in Manage as Dfe Admin (#334
) * test: added manage e2e test suite * refactor: updated readme --------- Co-authored-by: Tina Gohil <[email protected]>
- Loading branch information
1 parent
f48f28a
commit e453c6a
Showing
10 changed files
with
1,365 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules/ | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ | ||
/target | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# E2E Testing | ||
|
||
Here are written End to End tests for Family Hubs: Manage. | ||
This is a Serenity/JS with Playwright Framework using a screenplay pattern. | ||
# Prerequisites | ||
|
||
- Ensure Node.js and npm are installed on your machine. | ||
- Run data seed scripts | ||
- Navigate to folder of service under test (i.e. manage-e2e-tests) | ||
- Install all required dependencies: npm install | ||
- Ensure to create a .env file containing the baseURL, usernames, and password for the environment you plan to test. | ||
|
||
# How to run the tests locally (against the test environment) | ||
|
||
Ensure all playwright browsers are installed locally https://playwright.dev/docs/browsers | ||
To run tests: `npm test` | ||
To view the test report: `npm run test:report` | ||
|
||
# Helpful Links | ||
|
||
Screenplay Pattern Overview - https://serenity-js.org/handbook/design/screenplay-pattern/ | ||
|
||
Serenity JS Playwright Test | ||
- https://serenity-js.org/handbook/test-runners/playwright-test/ | ||
- https://serenity-js.org/handbook/getting-started/serenity-js-with-playwright-test/ | ||
|
Oops, something went wrong.