Skip to content

Commit

Permalink
fix: E2E tests, tooltip related
Browse files Browse the repository at this point in the history
  • Loading branch information
ramedina86 committed Nov 14, 2024
1 parent b149559 commit eb5a988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/ui/src/builder/BuilderSidebarTitleSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
data-writer-tooltip="Close"
data-writer-tooltip-placement="bottom"
tabindex="0"
data-automation-action="close"
@keydown.enter="toggleSearch"
@click="toggleSearch"
>
Expand All @@ -27,6 +28,7 @@
data-writer-tooltip-placement="bottom"
class="searchIcon material-symbols-outlined"
tabindex="0"
data-automation-action="search"
@keydown.enter="toggleSearch"
@click="toggleSearch"
>
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/tests/sidebar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.describe("sidebar", () => {
// click on icon to begin search
await page
.locator(
`.BuilderSidebarToolbar .BuilderSidebarTitleSearch i[title="Search"]`,
`.BuilderSidebarToolbar .BuilderSidebarTitleSearch [data-automation-action="search"]`,
)
.click();

Expand All @@ -40,7 +40,7 @@ test.describe("sidebar", () => {
// close search
await page
.locator(
`.BuilderSidebarToolbar .BuilderSidebarTitleSearch i[title="Close"]`,
`.BuilderSidebarToolbar .BuilderSidebarTitleSearch [data-automation-action="close"]`,
)
.click();

Expand All @@ -54,7 +54,7 @@ test.describe("sidebar", () => {
// click on icon to begin search
await page
.locator(
`.BuilderSidebarToolbar .BuilderSidebarTitleSearch i[title="Search"]`,
`.BuilderSidebarToolbar .BuilderSidebarTitleSearch [data-automation-action="search"]`,
)
.click();

Expand Down

0 comments on commit eb5a988

Please sign in to comment.