-
Open the forked repo in VSCode.
-
Create a new branch by running
git checkout -b task_solution
. -
Run the installation commands:
npm ci
npx playwright install
-
Automate the multi-user test:
- User can view an article created by another user in the Global Feed.
- User can follow the article created by another user.
- User can unfollow the article created by another user.
- User can view an article updated by another user.
- User can see other user's new articles in "Your Feed" after following their profile.
- User doesn't see other user's articles in "Your Feed" after unfollowing their profile.
-
Automate the test for a single user working in two contexts:
- User can sign in with changed in profile password.
- User can see own article in "Global feed" when not logged in.
Use the following example tests as templates:
viewArticleCreatedByAnotherUser.spec.js
signInPositive.spec.js
-
Re-run all your tests and ensure they pass after the updates.
- 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.