Skip to content

Commit 6a65166

Browse files
committed
Initial skip-to-list test
1 parent bac1df5 commit 6a65166

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

demo/skip-to-list.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818
<body>
1919

2020
<div id="app">
21-
<vue-skip-to-list :to="[
22-
{anchor: '#main', label: 'Main'},
23-
{anchor: '#footer', label: 'Footer'},
24-
]">
21+
<vue-skip-to-list
22+
:to="[
23+
{anchor: '#main', label: 'Main'},
24+
{anchor: '#footer', label: 'Footer'},
25+
]"
26+
data-vst="skip-to-list"
27+
>
2528
Skip links
2629
</vue-skip-to-list>
2730

tests/e2e/integration/skip-to-list.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
describe('skip-link list', () => {
2+
beforeEach(() => {
3+
cy.visit('/skip-to-list.html')
4+
})
5+
6+
it('Should render list label', () => {
7+
cy
8+
.get('[data-vst="skip-to-list"]')
9+
.should('contain', 'Skip links')
10+
})
11+
})

0 commit comments

Comments
 (0)