Skip to content

Commit

Permalink
Fix build issue #862 (#863)
Browse files Browse the repository at this point in the history
* migrate cypress
* clean local storage before each test
  • Loading branch information
jfhenon authored Dec 11, 2022
1 parent bb3a9b1 commit 0417618
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 283 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ instrumented
.DS_Store
.idea
dist
coverage/coverage-summary.json
69 changes: 1 addition & 68 deletions coverage/coverage-summary.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cypress.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
includeShadowDom: true,
scrollBehavior: false,
e2e: {
testIsolation: false,
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents (on, config) {
Expand Down
3 changes: 2 additions & 1 deletion cypress/support/ui-test-helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const visitAndApproveStorage = () => {
cy.clearLocalStorage()
cy.visit('/src/editor/index.html')
cy.get('#storage_ok').click()
cy.get('#storage_ok').click({ force: true })
}

export const openMainMenu = () => {
Expand Down
Loading

0 comments on commit 0417618

Please sign in to comment.