From 3d38fe691eaa7c6266348727d0b263f614724805 Mon Sep 17 00:00:00 2001 From: devadula-nandan Date: Wed, 11 Dec 2024 19:13:29 +0530 Subject: [PATCH] chore: debug pageheader --- e2e/components/PageHeader/PageHeader-test.avt.e2e.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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