diff --git a/cypress/e2e/accessibility.cy.ts b/cypress/e2e/accessibility.cy.ts index abf728c2..6c2219ff 100644 --- a/cypress/e2e/accessibility.cy.ts +++ b/cypress/e2e/accessibility.cy.ts @@ -23,7 +23,7 @@ describe("accessibility", () => { const selector = "root:skip:layer-editor"; then(get.elementByTestId(selector)).shouldExist(); when.tab().tab(); - should.beFocused(selector); + then(get.elementByTestId(selector)).shouldBeFocused(); when.click(selector); then(get.skipTargetLayerEditor()).shouldBeFocused(); }); @@ -32,7 +32,7 @@ describe("accessibility", () => { const selector = "root:skip:map-view"; then(get.elementByTestId(selector)).shouldExist(); when.tab().tab().tab(); - should.beFocused(selector); + then(get.elementByTestId(selector)).shouldBeFocused(); when.click(selector); then(get.canvas()).shouldBeFocused(); });