Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix tag tests

Abdullah Atta812ecf93c8c5
diff --git a/apps/web/__e2e__/models/editor.model.ts b/apps/web/__e2e__/models/editor.model.ts
index 80b8873cc..c98c06f29 100644
--- a/apps/web/__e2e__/models/editor.model.ts
+++ b/apps/web/__e2e__/models/editor.model.ts
@@ -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();
}
}
@@ -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;