Skip to content

Commit d5b1c2f

Browse files
authored
Updated helper (#333)
1 parent 8d6d118 commit d5b1c2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/helpers/UiBaseLocators.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,10 @@ export class UiBaseLocators {
821821
await this.page.waitForTimeout(400);
822822
await this.unnamedTabTxt.clear();
823823
await this.unnamedTabTxt.fill(tabName);
824-
await expect(this.page.getByTestId('tab:' + tabName)).toBeVisible();
824+
// We use this to make sure the test id is updated
825+
await this.page.getByRole('tab', { name: 'Design' }).click();
826+
// We click again to make sure the tab is focused
827+
await this.page.getByTestId('tab:' + tabName).click();
825828
}
826829

827830
async searchForTypeToFilterValue(searchValue: string) {

0 commit comments

Comments
 (0)