- Open the forked repo in VSCode.
- Create a new branch: git checkout -b added_article_test
- Run the installation commands
npm ci
&npx playwright install
.
- Add all the edit article tests you have created in the previous home work.
- Create file
fixturesArticles.ts
under thetests/_fixtures
folder. - Add test scope fixtures to the file:
createArticlePage
- for initializing CreateArticlePage page.viewArticlePage
- for initializing ViewArticlePage page.editArticlePage
- for initializing EditArticlePage page.articleWithoutTags
- for generating random article test data.articleWithOneTag
- for generating random article test data.articleWithTwoTags
- for generating random article test data.
- Merge fixtures from
fixturesArticles.ts
to thefixtures.ts
file. - Add logger to the input parameters of the
generateNewArticleData.js
and the debug logNew article geenrated: ${article}
.
- use as an example
generateNewUserData.js
.
- Update all the article tests to use fixtures.
- Re-run all your tests and make sure they pass after the updates.
- Add and commit all your updates.
- Push the code to the origin.
- Create PR for your changes.
- Fix all the suggestions from the Code review until PR is approved.