Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
chore: test skeleton for search (#2082)
Browse files Browse the repository at this point in the history
* chore: Added search test skeleton

* Update search.spec.js

* chore: fix minor typo

* Update search.spec.js
  • Loading branch information
Pradumnasaraf authored Oct 31, 2022
1 parent aeb7f0f commit e8608b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/search.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@ test.fixme("Search works correctly", async ({ page }) => {
// 3. type in search and check that user with the name exist and check a name doesn't exist from step 2
});

test.fixme("Search page has no results when no search term used", async ({ page }) => {
// 1. Navigate to search page
// 2. Check no results are displayed
});

test.fixme("Search page shows no results after typing 2 characters", async ({ page }) => {
// 1. Navigate to search page
// 2. Type 2 characters
// 3. Check no results are displayed
});

test.fixme("Search page shows results after typing 3 characters", async ({ page }) => {
// 1. Navigate to search page
// 2. Type 3 characters
// 3. Check if the results show up if the it get matched.
});

test.fixme("After search click profile", async ({ page }) => {
// 1. perform search
// 2. click on searched profile
Expand Down

0 comments on commit e8608b3

Please sign in to comment.