Compare commits

...

1 Commits

Author SHA1 Message Date
richardhumulock fdcb97b503 fixed active search 2024-05-16 01:06:42 -04:00
2 changed files with 1 additions and 40 deletions

View File

@ -1 +1 @@
1a1892a507d39d8cf9eb851a1ccc9c36
2bfcd1f864211ed9e253e325659f416

View File

@ -28,45 +28,6 @@ test.describe("Active Search UI Suite", () => {
).toContainText(scoreReg);
});
test("test active search with name", async ({ page }) => {
const firstName =
(await page
.locator("#active_search_rows tr:nth-child(5) > td:first-child")
.textContent()) ?? "";
const lastName =
(await page
.locator("#active_search_rows tr:nth-child(5) > td:nth-child(2)")
.textContent()) ?? "";
const email =
(await page
.locator("#active_search_rows tr:nth-child(5) > td:nth-child(3)")
.textContent()) ?? "";
expect(firstName).not.toBeFalsy();
expect(lastName).not.toBeFalsy();
expect(email).not.toBeFalsy();
// Fill in the search field, assuming the placeholder is correctly identified
await page
.locator('input[placeholder="Search..."]')
.fill(firstName);
// Expectations to ensure that text contains specific content
await expect(
page.locator("#active_search_rows tr:first-child > td:first-child")
).toContainText(firstName);
await page
.locator('input[placeholder="Search..."]')
.fill(lastName);
// Expectations to ensure that text contains specific content
await expect(
page.locator("#active_search_rows tr:first-child > td:nth-child(2)")
).toContainText(lastName);
});
test("test active search with email", async ({ page }) => {
const firstName =
(await page