Skip to content

Commit

Permalink
web: fix tag tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Nov 25, 2023
1 parent 74d99d9 commit 812ecf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/__e2e__/models/editor.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class EditorModel {
await this.tagInput.fill(tag);
await this.tagInput.press("Enter");
await this.tags
.locator(":scope", { hasText: new RegExp(`^${tag}$`) })
.locator("span", { hasText: new RegExp(`^${tag}$`) })
.waitFor();
}
}
Expand All @@ -181,7 +181,7 @@ export class EditorModel {
const count = await this.tags.count();
for (let i = 0; i < count; ++i) {
const item = this.tags.nth(i);
const tag = await item.textContent();
const tag = await item.locator("span").textContent();
if (tag) tags.push(tag);
}
return tags;
Expand Down

0 comments on commit 812ecf9

Please sign in to comment.