From 3cfb124402765c1429f681cf541898b5783aa5c0 Mon Sep 17 00:00:00 2001 From: Andreas Zerbst Date: Wed, 19 Nov 2025 11:30:38 +0100 Subject: [PATCH] Updated helper --- lib/helpers/UiBaseLocators.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/helpers/UiBaseLocators.ts b/lib/helpers/UiBaseLocators.ts index 7d2c9b7..ad12f14 100644 --- a/lib/helpers/UiBaseLocators.ts +++ b/lib/helpers/UiBaseLocators.ts @@ -813,7 +813,10 @@ export class UiBaseLocators { await this.page.waitForTimeout(400); await this.unnamedTabTxt.clear(); await this.unnamedTabTxt.fill(tabName); - await expect(this.page.getByTestId('tab:' + tabName)).toBeVisible(); + // We use this to make sure the test id is updated + await this.page.getByRole('tab', { name: 'Design' }).click(); + // We click again to make sure the tab is focused + await this.page.getByTestId('tab:' + tabName).click(); } async searchForTypeToFilterValue(searchValue: string) {