Skip to content

Commit

Permalink
test: adapt to UI changes to hui-buttons-header-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanna_37 committed Dec 27, 2023
1 parent 398e725 commit b83b563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/dashboards/individual-dashboards/one-scrollbar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test("shouldn't change, scrollbar swiped", async ({ page, isMobile }) => {
await page.goto(dashboardPath);
await expect(page).toHaveURL(dashboardPath + "/0");

const scrollbarContainer = page.locator("hui-buttons-header-footer > * > div");
const scrollbarContainer = page.locator("ha-chip-set");
const mdCard = page.locator("hui-markdown-card");

const consoleLogs: string[] = [];
Expand All @@ -27,7 +27,7 @@ test("shouldn't change, scrollbar swiped", async ({ page, isMobile }) => {
await expect(page).toHaveURL(dashboardPath + "/0");

let matches = 0;
const regexp = /.*Ignoring touch on "div".*/;
const regexp = /.*Ignoring touch on "ha-chip-set".*/;
for (const log of consoleLogs) {
if (regexp.test(log)) { matches++; }
}
Expand Down

0 comments on commit b83b563

Please sign in to comment.