Skip to content

Commit

Permalink
E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 26, 2024
1 parent 63973a9 commit ad5ad8b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,17 @@ jobs:
- name: Test embedded lgv
run: |
yarn
yarn build
yarn test:e2e
yarn e2e
working-directory: component_tests/lgv
- name: Test embedded cgv
run: |
yarn
yarn build
yarn test:e2e
yarn e2e
working-directory: component_tests/cgv
- name: Test embedded react-app
run: |
yarn
yarn build
yarn test:e2e
yarn e2e
working-directory: component_tests/react-app

buildjbrowseweb:
Expand Down
2 changes: 1 addition & 1 deletion component_tests/cgv/cypress/e2e/basic.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ describe('JBrowse embedded circular view', () => {
it('track loads', () => {
cy.visit('/')

cy.findByTestId('chord-1148282975-vcf-63189', { timeout: 30000 })
cy.findByTestId('chord--470870972-vcf-62853', { timeout: 30000 })
})
})
8 changes: 6 additions & 2 deletions component_tests/cgv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"test:e2e": "start-test 'serve --listen 5000 build/' 5000 'cypress run --headless --browser chrome'"
"pree2e": "yarn build",
"e2e": "start-test 'serve --listen 5000 build/' 5000 'cypress run --headless --browser chrome'"
},
"eslintConfig": {
"extends": [
Expand All @@ -72,5 +73,8 @@
"last 1 safari version"
]
},
"homepage": "."
"homepage": ".",
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
}
}
8 changes: 6 additions & 2 deletions component_tests/lgv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"build": "craco build",
"test": "craco test",
"eject": "craco eject",
"test:e2e": "start-test 'serve --listen 5000 build/' 5000 'cypress run --headless --browser chrome'"
"pree2e": "yarn build",
"e2e": "start-test 'serve --listen 5000 build/' 5000 'cypress run --headless --browser chrome'"
},
"eslintConfig": {
"extends": [
Expand All @@ -71,5 +72,8 @@
"last 1 safari version"
]
},
"homepage": "."
"homepage": ".",
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
}
}
8 changes: 6 additions & 2 deletions component_tests/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"build": "craco build",
"test": "craco test",
"eject": "craco eject",
"test:e2e": "start-test 'serve --listen 5000 build/' 5000 'cypress run --headless --browser chrome'"
"pree2e": "yarn build",
"e2e": "start-test 'serve --listen 5000 build/' 5000 'cypress run --headless --browser chrome'"
},
"eslintConfig": {
"extends": [
Expand All @@ -84,5 +85,8 @@
"last 1 safari version"
]
},
"homepage": "."
"homepage": ".",
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
}
}

0 comments on commit ad5ad8b

Please sign in to comment.