We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6d118 commit d5b1c2fCopy full SHA for d5b1c2f
lib/helpers/UiBaseLocators.ts
@@ -821,7 +821,10 @@ export class UiBaseLocators {
821
await this.page.waitForTimeout(400);
822
await this.unnamedTabTxt.clear();
823
await this.unnamedTabTxt.fill(tabName);
824
- await expect(this.page.getByTestId('tab:' + tabName)).toBeVisible();
+ // 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();
828
}
829
830
async searchForTypeToFilterValue(searchValue: string) {
0 commit comments