From 66bc1da3f7840e6ae518cb9a0bfc4277769ff7ab Mon Sep 17 00:00:00 2001 From: William L Date: Tue, 2 Jun 2020 16:34:13 -0700 Subject: [PATCH 1/3] Fix `skip-to-list` demo label text --- demo/skip-to-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/skip-to-list.html b/demo/skip-to-list.html index 640d54b..68bef52 100644 --- a/demo/skip-to-list.html +++ b/demo/skip-to-list.html @@ -20,7 +20,7 @@
{ }) it('The input search must receive the focus', () => { - cy.get('[data-vst="skip-to"]').focus().click() + cy.get('body').tab().click() cy.focused().should('have.id', 'search') }) }) From 139f99c06a21b2f6f3f757783819b1987903b2cd Mon Sep 17 00:00:00 2001 From: William L Date: Tue, 2 Jun 2020 17:09:06 -0700 Subject: [PATCH 3/3] Add test for main link label --- tests/e2e/integration/skip-to-list.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/e2e/integration/skip-to-list.js b/tests/e2e/integration/skip-to-list.js index 90039fc..fb03991 100644 --- a/tests/e2e/integration/skip-to-list.js +++ b/tests/e2e/integration/skip-to-list.js @@ -10,6 +10,9 @@ describe('Skip link list', () => { }) it('Should traverse links on tab', () => { + cy.get('body').tab() + cy.focused().should('contain', 'Main') + cy.get('body').tab().tab() cy.focused().should('contain', 'Footer') })