Skip to content

Commit

Permalink
Remove cypress and switch to playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Apr 29, 2022
1 parent edc2d5e commit 40f4f4f
Show file tree
Hide file tree
Showing 27 changed files with 17 additions and 9,740 deletions.
8 changes: 0 additions & 8 deletions .gitignore
Expand Up @@ -47,11 +47,3 @@ yarn-error.log*

# Ignore node modules
node_modules

# Cypress
*/cypress/screenshots
*/cypress/videos
*/cypress/downloads

# Playwright
playwright/storageState.json
2 changes: 1 addition & 1 deletion cosmos-control.bat
Expand Up @@ -138,7 +138,7 @@ GOTO :EOF
@echo * repository: hostname of the docker repository 1>&2
@echo * test: test COSMOS 1>&2
@echo * rspec: run tests against Ruby code 1>&2
@echo * cypress: run end-to-end tests 1>&2
@echo * playwright: run end-to-end tests 1>&2
@echo * util: various helper commands 1>&2
@echo * encode: encode a string to base64 1>&2
@echo * hash: hash a string using SHA-256 1>&2
Expand Down
2 changes: 1 addition & 1 deletion cosmos-control.sh
Expand Up @@ -17,7 +17,7 @@ usage() {
echo "* repository: hostname of the docker repository" >&2
echo "* test: test COSMOS" >&2
echo "* rspec: run tests against Ruby code" >&2
echo "* cypress: run end-to-end tests" >&2
echo "* playwright: run end-to-end tests" >&2
echo "* util: various helper commands" >&2
echo "* encode: encode a string to base64" >&2
echo "* hash: hash a string using SHA-256" >&2
Expand Down
1 change: 0 additions & 1 deletion cosmos-init/.dockerignore
@@ -1,5 +1,4 @@
Dockerfile
cypress
**/*.gem
**/node_modules
**/package-lock.json
Expand Down
Expand Up @@ -67,9 +67,8 @@ export default {
},
methods: {
dismiss: function () {
localStorage[
'suppresswarning__clock_out_of_sync_with_server'
] = this.suppress
localStorage['suppresswarning__clock_out_of_sync_with_server'] =
this.suppress
this.dismissed = true
},
},
Expand All @@ -80,7 +79,6 @@ export default {
dialog: function () {
return (
!this.dismissed &&
!window.Cypress && // TODO: Handle this in Cypress (have all the tests dismiss it, or fix the clock in Cypress)
Math.abs(this.discrepancy) >= ALLOWABLE_DISCREPANCY_MS
)
},
Expand Down
Expand Up @@ -214,7 +214,6 @@ export default {
})
}
},
// TODO: This doesn't seem to be called / covered when running cypress tests?
beforeDestroy() {
if (this.updater != null) {
clearInterval(this.updater)
Expand Down
3 changes: 0 additions & 3 deletions cypress/.browserlistrc

This file was deleted.

42 changes: 0 additions & 42 deletions cypress/.eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/.prettierrc.js

This file was deleted.

24 changes: 0 additions & 24 deletions cypress/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions cypress/babel.config.js

This file was deleted.

133 changes: 0 additions & 133 deletions cypress/context.js

This file was deleted.

10 changes: 0 additions & 10 deletions cypress/cypress.json

This file was deleted.

0 comments on commit 40f4f4f

Please sign in to comment.