fix: update search results selector based on layout (#5552)

This commit is contained in:
Dimitri Harding 2022-07-23 21:57:55 -05:00 committed by GitHub
parent 6c90798905
commit 2cfd7ac5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@
const { test, expect } = require("@playwright/test");
test.describe("Search Tests", () => {
const searchResultSelector = '.c-tree__scrollable .c-tree__item a';
const searchResultSelector = '.c-gsearch-result__title';
test('Validate empty search result [no match search]', async ({ page }) => {
// Go to baseURL
@ -44,7 +44,6 @@ test.describe("Search Tests", () => {
// Verify that no results are found
expect(await searchResults.count()).toBe(0);
expect(await page.locator('text=No results found').count()).toBe(1);
});
test('Validate single object in search result [full search]', async ({ page }) => {