-
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
-
Create the following tests for the Conduit article:
- create an article with required and optional fields
- create an article without article description
- create an article without article text
- create an article without article tag
-
Use the test
createArticleWithoutRequiredFields.spec.jsas your template. -
Use the POM pattern in your tests.
-
Add all test preconditions to the
beforeEachblock. -
Add a
test.stepfor each method in the page classes. -
Re-run all your tests and make sure they pass after the updates.
Hint
When adding tags, use the await page.keyboard.press('Enter'); method to enter the tag after filling its value. You can read more about keyboard actions in the documentation.
- 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.