diff --git a/e2e/tests/functional/plugins/clocks/clock.e2e.spec.js b/e2e/tests/functional/plugins/clocks/clock.e2e.spec.js index cecdb30b47..db1a288682 100644 --- a/e2e/tests/functional/plugins/clocks/clock.e2e.spec.js +++ b/e2e/tests/functional/plugins/clocks/clock.e2e.spec.js @@ -50,7 +50,7 @@ test.describe('Clock Generator CRUD Operations', () => { await page.locator('.icon-arrow-down').click(); // Verify clicking on the autocomplete arrow collapses the dropdown - await expect(page.locator(".c-input--autocomplete__options")).not.toBeVisible(); + await expect(page.locator(".c-input--autocomplete__options")).toBeHidden(); // Click timezone input to open dropdown await page.locator('.c-input--autocomplete__input').click(); @@ -60,7 +60,7 @@ test.describe('Clock Generator CRUD Operations', () => { // Verify clicking outside the autocomplete dropdown collapses it await page.locator('text=Timezone').click(); // Verify clicking on the autocomplete arrow collapses the dropdown - await expect(page.locator(".c-input--autocomplete__options")).not.toBeVisible(); + await expect(page.locator(".c-input--autocomplete__options")).toBeHidden(); }); }); diff --git a/e2e/tests/functional/plugins/notebook/tags.e2e.spec.js b/e2e/tests/functional/plugins/notebook/tags.e2e.spec.js index 4e7c00450e..c54233cee2 100644 --- a/e2e/tests/functional/plugins/notebook/tags.e2e.spec.js +++ b/e2e/tests/functional/plugins/notebook/tags.e2e.spec.js @@ -122,8 +122,8 @@ test.describe('Tagging in Notebooks @addInit', () => { await page.locator('[aria-label="OpenMCT Search"] input[type="search"]').click(); // Fill [aria-label="OpenMCT Search"] input[type="search"] await page.locator('[aria-label="OpenMCT Search"] input[type="search"]').fill('Xq'); - await expect(page.locator('[aria-label="Search Result"]')).not.toBeVisible(); - await expect(page.locator('[aria-label="Search Result"]')).not.toBeVisible(); + await expect(page.locator('[aria-label="Search Result"]')).toBeHidden(); + await expect(page.locator('[aria-label="Search Result"]')).toBeHidden(); }); test('Can delete tags', async ({ page }) => { diff --git a/e2e/tests/functional/search.e2e.spec.js b/e2e/tests/functional/search.e2e.spec.js index 0daa1b3f9f..fe488697c6 100644 --- a/e2e/tests/functional/search.e2e.spec.js +++ b/e2e/tests/functional/search.e2e.spec.js @@ -41,7 +41,7 @@ test.describe('Grand Search', () => { await expect(page.locator('[aria-label="Search Result"] >> nth=3')).toContainText(`Clock D ${myItemsFolderName} Red Folder Blue Folder`); // Click text=Elements >> nth=0 await page.locator('text=Elements').first().click(); - await expect(page.locator('[aria-label="Search Result"] >> nth=0')).not.toBeVisible(); + await expect(page.locator('[aria-label="Search Result"] >> nth=0')).toBeHidden(); await page.locator('[aria-label="OpenMCT Search"] [aria-label="Search Input"]').click(); await page.locator('[aria-label="Clock A clock result"] >> text=Clock A').click(); @@ -54,11 +54,11 @@ test.describe('Grand Search', () => { // Click [aria-label="OpenMCT Search"] a >> nth=0 await page.locator('[aria-label="OpenMCT Search"] a').first().click(); - await expect(page.locator('[aria-label="Search Result"] >> nth=0')).not.toBeVisible(); + await expect(page.locator('[aria-label="Search Result"] >> nth=0')).toBeHidden(); // Fill [aria-label="OpenMCT Search"] input[type="search"] await page.locator('[aria-label="OpenMCT Search"] input[type="search"]').fill('foo'); - await expect(page.locator('[aria-label="Search Result"] >> nth=0')).not.toBeVisible(); + await expect(page.locator('[aria-label="Search Result"] >> nth=0')).toBeHidden(); // Click text=Snapshot Save and Finish Editing Save and Continue Editing >> button >> nth=1 await page.locator('text=Snapshot Save and Finish Editing Save and Continue Editing >> button').nth(1).click(); diff --git a/package.json b/package.json index 4dc5f1c63b..9041e15d33 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "d3-selection": "3.0.0", "eslint": "8.22.0", "eslint-plugin-compat": "4.0.2", - "eslint-plugin-playwright": "0.10.0", + "eslint-plugin-playwright": "0.11.1", "eslint-plugin-vue": "9.3.0", "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0", "eventemitter3": "1.2.0",