Skip to content

Commit

Permalink
ADM-1000 [frontend]: fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-yinyuan committed Sep 24, 2024
1 parent 143e8a6 commit 92be919
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/e2e/pages/metrics/metrics-step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ export class MetricsStep {
}

async selectOrganization(selector: Locator, orgName: string) {
await expect(this.loadings).toBeHidden();
for (const loading of await this.loadings.all()) {
await expect(loading).toBeHidden();
}
await selector.click();
const targetOrganizationOption = this.page.getByRole('option', { name: orgName });
await expect(targetOrganizationOption).toBeVisible();
Expand Down

0 comments on commit 92be919

Please sign in to comment.