forked from NEAR-DevHub/neardevhub-bos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement server side search (NEAR-DevHub#298)
* Implement server side search * case insensitive search on content * add search test
- Loading branch information
1 parent
00f7737
commit d29232f
Showing
3 changed files
with
115 additions
and
796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { test } from "@playwright/test"; | ||
|
||
test("should show post history for posts in the feed", async ({ page }) => { | ||
await page.goto("/devgovgigs.near/widget/gigs-board.pages.Feed"); | ||
|
||
// Fill the search by content by to | ||
const searchInputSelector = 'input.form-control[type="search"]'; | ||
let searchInput = await page.waitForSelector(searchInputSelector, { | ||
state: "visible", | ||
}); | ||
await searchInput.fill("zero knowledge"); | ||
|
||
const searchButton = await page.getByRole("button", { name: "Search" }); | ||
await searchButton.click(); | ||
|
||
await page.waitForSelector('span:has-text("zero knowledge")', { | ||
state: "visible", | ||
timeout: 10000, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.