diff --git a/e2e/components/PageHeader/PageHeader-test.avt.e2e.js b/e2e/components/PageHeader/PageHeader-test.avt.e2e.js index 29fbd56391..131800a65f 100644 --- a/e2e/components/PageHeader/PageHeader-test.avt.e2e.js +++ b/e2e/components/PageHeader/PageHeader-test.avt.e2e.js @@ -191,9 +191,8 @@ test.describe('PageHeader @avt', () => { // focus on first focusable element await page.getByRole('link', { name: 'Home page' }).focus(); await pressTabKey(page, 4); - await expect( - page.getByRole('button', { name: 'Page actions...' }) - ).toBeFocused(); + console.log(await page.locator('*:focus').textContent()); + (await page.locator('*:focus').textContent()) === 'Page actions...'; await page.keyboard.press('Enter'); // Ensure all buttons are rendered