Skip to content

Commit

Permalink
dont use make to switch into ll directory
Browse files Browse the repository at this point in the history
  • Loading branch information
y3rsh committed Oct 3, 2024
1 parent 5932ab5 commit 907da5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ll-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ jobs:
yarn config set cache-folder ./.yarn-cache
make setup-js
- name: 'test-e2e'
working-directory: labware-library
env:
OT_LL_MIXPANEL_ID: ${{ secrets.OT_LL_MIXPANEL_ID }}
OT_LL_MIXPANEL_DEV_ID: ${{ secrets.OT_LL_MIXPANEL_DEV_ID }}
run: make -C labware-library test-e2e
run: make labware-library test-e2e
build-ll:
name: 'build labware library artifact'
needs: ['js-unit-test']
Expand Down
1 change: 0 additions & 1 deletion labware-library/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ module.exports = defineConfig({
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:5179',
downloadsFolder: 'cypress/downloads',
},
})
11 changes: 3 additions & 8 deletions labware-library/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
/**
* @type {Cypress.PluginConfig}
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.name === 'chrome') {
launchOptions.preferences.default.download = {
default_directory: config['downloadsFolder'].replace(/\\/g, '\\\\'),
}
return launchOptions
}
})
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}

0 comments on commit 907da5e

Please sign in to comment.