Skip to content

Commit c88fe44

Browse files
committed
test(next15): update cypress next to latest
1 parent 60afb6a commit c88fe44

File tree

4 files changed

+11
-35
lines changed

4 files changed

+11
-35
lines changed
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client"
22
import dynamic from "next/dynamic"
33
import React from "react";
4-
// import SgdsCombobox from "@govtechsg/sgds-web-component/react/combo-box/index.js";
54

65
const SgdsCombobox = dynamic(
76
() => import("@govtechsg/sgds-web-component/react/combo-box/index.js"),
@@ -10,19 +9,9 @@ const SgdsCombobox = dynamic(
109
}
1110
);
1211
export const Combobox = () => {
13-
// const [dummy, setDummy] = React.useState(0);
14-
// const forceRerender = () => setDummy((x) => x + 1);
15-
// React.useEffect(() => {
16-
// forceRerender();
17-
// }, []);
1812
return (
1913
<div>
20-
<sgds-select
21-
menulist={JSON.stringify([{label: "apple", value: "apple"}, {label: "orange", value: "orange"}, {label: "pear", value: "pear"}])}
22-
onchange={(e: any) => console.log("change")}
23-
>
24-
</sgds-select>
25-
{/* <SgdsCombobox
14+
<SgdsCombobox
2615
label="Fruits"
2716
hintText="single select"
2817
name="combobox"
@@ -36,7 +25,7 @@ export const Combobox = () => {
3625
name="combobox"
3726
placeholder="ComboBox"
3827
menuList={[{label: "apple", value: "apple"}, {label: "orange", value: "orange"}, {label: "pear", value: "pear"}]}>
39-
</SgdsCombobox> */}
28+
</SgdsCombobox>
4029
</div>
4130
)
4231
}

cypress/apps/next-app/src/app/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ export default function Home() {
4141
return (
4242
<main>
4343
<div>hello world</div>
44-
{/* <Masthead />
44+
<Masthead />
4545
<Mainnav />
4646
<Accordion />
4747
<Alert />
4848
<Badge />
4949
<Breadcrumb />
5050
<Button />
5151
<Card />
52-
<Checkbox /> */}
52+
<Checkbox />
5353
<Combobox />
54-
{/* <Datepicker />
54+
<Datepicker />
5555
<DescriptionList />
5656
<Divider />
5757
<Drawer />
@@ -78,7 +78,7 @@ export default function Home() {
7878
<Textarea />
7979
<Toast />
8080
<Tooltip />
81-
<Footer /> */}
81+
<Footer />
8282
</main>
8383
);
8484
}
Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"compilerOptions": {
3-
"lib": [
4-
"dom",
5-
"dom.iterable",
6-
"esnext"
7-
],
3+
"lib": ["dom", "dom.iterable", "esnext"],
84
"allowJs": true,
95
"skipLibCheck": true,
106
"strict": true,
@@ -22,19 +18,10 @@
2218
}
2319
],
2420
"paths": {
25-
"@/*": [
26-
"./src/*"
27-
]
21+
"@/*": ["./src/*"]
2822
},
2923
"target": "ES2017"
3024
},
31-
"include": [
32-
"next-env.d.ts",
33-
"**/*.ts",
34-
"**/*.tsx",
35-
".next/types/**/*.ts"
36-
],
37-
"exclude": [
38-
"node_modules"
39-
]
25+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
26+
"exclude": ["node_modules"]
4027
}

src/components/Select/sgds-select.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class SgdsSelect extends SelectElement {
148148
?required=${this.required}
149149
.value=${this.displayValue}
150150
@blur=${this._handleInputBlur}
151-
@change=${() => console.log('native change')}
151+
@change=${() => console.log("native change")}
152152
@focus=${this._handleFocus}
153153
aria-describedby=${ifDefined(this.invalid && this.hasFeedback ? `${this._controlId}-invalid` : undefined)}
154154
aria-labelledby="${this._labelId} ${this._controlId}Help ${this.invalid && this.hasFeedback

0 commit comments

Comments
 (0)