Commit graph

5 commits

Author SHA1 Message Date
Gianni Ceccarelli d7bb6c88d3
Cypress typescript (#13591)
* convert Cypress tests to TypeScript

this work was done by @lunaisnotaboy https://github.com/lunaisnotaboy
for their fork https://github.com/cutiekey/cutiekey/pull/7

I just repacked their changes into a minimal set

* fix call to `window` in cypress tests

this error was spotted thanks to the TypeScript compiler:

```
support/commands.ts:33:12 - error TS2559: Type '(win: any) => void'
has no properties in common with type 'Partial<Loggable &
Timeoutable>'.

33  cy.window(win => {
              ~~~~~~~~

Found 1 error in support/commands.ts:33
```

(again, @lunaisnotaboy did the actual work)
2024-03-20 11:25:49 +09:00
Kagami Sascha Rosylight 44058f8b85
enhance(e2e): more resilient version of visit('/') (#10128) 2023-03-01 15:32:53 +09:00
Kagami Sascha Rosylight 72e7909911
fix(cypress): pass {} as a parameter for /api/reset-db (#9355) 2022-12-19 15:15:28 +09:00
Andreas Nedbal d3e242a7f2
Extract commonly used test logic to commands (#8767)
* meta(tests): enable workflows to run in branch

* feat(tests): move commonly used logic to Cypress commands

* chore(tests): replace more code with commands

* meta(tests): disable workflows to run in branch
2022-05-31 17:57:01 +09:00
syuilo b81ff340b1 Introduce e2e test 2021-08-12 19:05:07 +09:00