Skip to content

Commit

Permalink
add filter
Browse files Browse the repository at this point in the history
  • Loading branch information
midleman committed Jan 30, 2025
1 parent 8aa6797 commit 8707899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/pages/scm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export class SCM {
const tooltip = type === 'Staged' ? 'Index Modified' : 'Modified';
const locator = this.code.driver.page
.getByLabel('Source Control Management')
.locator(`[data-tooltip="${tooltip}"] .file-icon`);

await expect(locator).toContainText(name);
.locator(`[data-tooltip="${tooltip}"] .file-icon`)
.filter({ hasText: name });

await expect(locator).toBeVisible();
await this.layout.enterLayout('stacked');
}

Expand Down

0 comments on commit 8707899

Please sign in to comment.