Skip to content

Commit

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

* test: added manage e2e test suite

* refactor: updated readme

---------

Co-authored-by: Tina Gohil <[email protected]>
  • Loading branch information
tgohil-hippo and Tina Gohil authored Jan 3, 2025
1 parent f48f28a commit e453c6a
Show file tree
Hide file tree
Showing 10 changed files with 1,365 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/manage-e2e-tests /.gitignore
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
26 changes: 26 additions & 0 deletions test/manage-e2e-tests /README.md
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/

Loading

0 comments on commit e453c6a

Please sign in to comment.