Skip to content

Commit 3203663

Browse files
committed
Fix cypress CI tests
1 parent 285b8db commit 3203663

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

client/cypress/e2e/spec.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ describe('web app', () => {
5656

5757
cy.get("input").last().focus().type("Roboto F{downArrow}{enter}", { delay: 200 })
5858

59-
cy.get('[type="radio"][value="all"]').check()
59+
cy.get('[type="checkbox"][id="cy-all-checkbox"]').check()
6060
})
6161
})

client/src/components/Configure.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export function Configure({ onChange, font, axes, submitColor, onGenerate }: Con
206206

207207
<Group justify="space-between">
208208
<Text>Character sets</Text>
209-
<Checkbox checked={font.subsets.length === subsets.length} label="All"
209+
<Checkbox checked={font.subsets.length === subsets.length} id="cy-all-checkbox" label="All"
210210
onChange={e => handleToggleAllSubsets(e.currentTarget.checked)} />
211211
</Group>
212212

client/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ export default defineConfig({
1111
changeOrigin: true,
1212
}
1313
}
14+
},
15+
resolve: {
16+
alias : {
17+
// Without this, the Vite bundles 5000+ tiny chunks in dev mode which destroys performance
18+
'@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
19+
}
1420
}
1521
})

0 commit comments

Comments
 (0)