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 8a5edc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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`);
.locator(`[data-tooltip="${tooltip}"] .file-icon`)
.filter({ hasText: name });

await expect(locator).toContainText(name);

await this.layout.enterLayout('stacked');
}

Expand Down

0 comments on commit 8a5edc9

Please sign in to comment.