feat(testing): Reduced flakyness

This commit is contained in:
Muhammed Mustafa
2022-10-13 19:10:45 +05:30
parent b20dac304d
commit 2b56b2309c
10 changed files with 61 additions and 14 deletions

View File

@@ -16,7 +16,10 @@ export class MetaDataPage extends BasePage {
async clickReload(){
await this.get().locator(`button:has-text("Reload")`).click();
await this.get().locator(`.animate-spin`).waitFor({state: 'visible'});
// todo: Remove this wait
await this.rootPage.waitForTimeout(100);
// await this.get().locator(`.animate-spin`).waitFor({state: 'visible'});
await this.get().locator(`.animate-spin`).waitFor({state: 'detached'});
}