mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 02:39:56 +00:00
fix: update search results selector based on layout (#5552)
This commit is contained in:
parent
6c90798905
commit
2cfd7ac5b6
@ -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 }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user