-
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.
Merge pull request #211 from DFE-Digital/E2E-Playwright-Tests
FHB-720 Add Playwright End to End Test Framework
- Loading branch information
Showing
11 changed files
with
1,353 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,2 @@ | ||
# .env | ||
BASE_URL=https://test2.find-support-for-your-family.education.gov.uk/ |
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,6 @@ | ||
node_modules/ | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ | ||
/target |
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,25 @@ | ||
# E2E Testing | ||
|
||
Here are written End to End tests for the three services in Family Hubs: Find, Connect, 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. find-e2e-tests, connect-e2e-tests or manage-e2e-tests) | ||
- Install all required dependencies: npm install | ||
- Ensure to create a .env file containing the baseURL for the environment you plan to test. | ||
|
||
# How to run the tests locally (against the test environment) | ||
|
||
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.