-
Open the forked repo in VSCode.
-
Create a new branch by running
git checkout -b task_solution. -
Run the installation commands:
npm cinpx playwright install
- Review the
addAllureTestHierarchyfixture in thetests/_fixtures/fixturesGeneric.tsfile to ensure you understand how it works. - Run the tests with
npx playwright test. - Generate a report using
allure serve allure-results. - Read the report, looking at the hierarchy in the Suites tab. Note that all the
parentSuiteandsuiteare automatically added to the tests with the help of theaddAllureTestHierarhyfixture. - Create the following new tests under the
userSettingsfolder, adding sub-folders if required:- Update username from settings
- Update email from settings
- Update password from settings
- Add profile picture URL from settings
- Add short bio from settings
- Create a single new test in the auth folder, adding subfolders if required:
- Log out user
- Create an
auto worker-scopefixture, so that the theallure-resultsfolder is deleted before before the tests are executed. - Run the tests with
npx playwright test. - Generate the report using
allure serve allure-results. - Read the report. Note that new tests are automatically placed correctly within the hierarchy in the Suites tab.
- Add and commit all your updates.
- Push the code to the origin.
- Create a PR for your changes.
- Keep implementing suggestions from code review until your PR is approved.