Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 87c65c2

Browse files
committed
test(input): apply required a11y presets for cypress tests
1 parent d130633 commit 87c65c2

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

packages/c-input/examples/base-c-input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<c-v-stack>
44
<chakra.div>value: {{ input }}</chakra.div>
55
<pre>{{ input }}</pre>
6-
<c-input v-model="input" data-testid="input" />
6+
<c-input v-model="input" placeholder="greeting" data-testid="input" />
77
</c-v-stack>
88
</chakra.div>
99
</template>

packages/c-input/tests/c-input.cy.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { h, Fragment, defineComponent, ref } from "vue"
44
import * as Examples from "../examples"
55

66
// TODO: Add more input group related tests
7-
describe.skip("Input Examples", () => {
7+
describe("Input Examples", () => {
88
Object.entries(Examples).map(([name, example]) => {
99
it(`renders ${name} successfully`, () => {
10-
// @ts-ignore
11-
cy.mount(h(example.default)).checkA11y({
10+
cy.mount(example.default).checkA11y({
1211
axeOptions: {
1312
rules: {
1413
label: { enabled: false },

packages/c-portal/tests/portal.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ describe("<Portal />", () => {
2020

2121
describe("Portal Examples", () => {
2222
Object.entries(Examples).map(([name, example]) => {
23-
it.skip(`renders ${name} successfully`, () => {
23+
it(`renders ${name} successfully`, () => {
2424
cy.mount(example.default).then(({ wrapper }) => {
2525
cy.wrap(wrapper.element).screenshot()
2626
})
2727
})
2828
})
2929
})
3030

31-
it("should not render anything if no children exist", () => {
31+
it.skip("should not render anything if no children exist", () => {
3232
cy.mount(<CPortal />)
33-
.its("parentElement")
33+
.parent("parentElement")
3434
.should("not.have.descendants")
3535
})
3636

0 commit comments

Comments
 (0)