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

Commit 1980aa5

Browse files
committed
refactor: reset and removed untracked files
1 parent 59d9bf0 commit 1980aa5

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,4 @@ cypress/screenshots
113113
.idea/*
114114
.yarn
115115
.yarnrc
116+
.yarnrc.yml

.yarnrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ 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`, () => {
1010
// @ts-ignore

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { CButton } from "../../c-button"
1414
import ReturnFocusOnCloseExample from "../examples/modal-return-focus.vue"
1515
import SimpleModalExample from "../examples/modal-simple.vue"
16+
import { useRef } from '@chakra-ui/vue-utils'
1617

1718
const render = (props: any = {}) => {
1819
return cy.mount(() =>
@@ -88,11 +89,11 @@ describe("Modal", () => {
8889
h(
8990
defineComponent({
9091
setup() {
91-
const initialFocusRef = ref()
92+
const [initialFocusRef, initialFocusRefEl] = useRef()
9293
return () => (
9394
<CModal
9495
modelValue={true}
95-
initialFocusRef={() => initialFocusRef.value}
96+
initialFocusRef={() => initialFocusRefEl.value}
9697
>
9798
<CModalOverlay />
9899
<CModalContent data-testid="dialog">

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,14 @@ describe("Tag", () => {
3939
const label = ref("opened")
4040
const triggerClose = () => (label.value = "closed")
4141

42-
return h(() => (
43-
<CTag>
44-
<CTagLabel>{label.value}</CTagLabel>
45-
<CTagCloseButton
46-
isDisabled
47-
data-testid="close-button-disabled"
48-
onClick={() => triggerClose()}
49-
/>
50-
</CTag>
51-
))
42+
return h(<CTag>
43+
<CTagLabel>{label.value}</CTagLabel>
44+
<CTagCloseButton
45+
isDisabled
46+
data-testid="close-button-disabled"
47+
onClick={() => triggerClose()}
48+
/>
49+
</CTag>)
5250
})
5351

5452
cy.get("button").click({ force: true })

0 commit comments

Comments
 (0)