mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-09 08:29:55 -05:00
08b11b7c4a
* chore: Update Chrome (stable) to 137.0.7151.55 * empty commit * chore: enable chrome for testing for system tests as we need it to test extension loading in chrome * Update system-tests/test/plugins_spec.js Co-authored-by: Matt Schile <mschile@cypress.io> * address comments from code review --------- Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com> Co-authored-by: Bill Glesias <bglesias@gmail.com> Co-authored-by: Matt Schile <mschile@cypress.io>
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import Fixtures from '../lib/fixtures'
|
|
import systemTests from '../lib/system-tests'
|
|
import browserUtils from '@packages/server/lib/browsers/utils'
|
|
|
|
const browser = {
|
|
name: 'chrome',
|
|
channel: 'stable',
|
|
}
|
|
const isTextTerminal = true // we're always in run mode
|
|
const PATH_TO_CHROME_PROFILE = browserUtils.getProfileDir(browser, isTextTerminal)
|
|
|
|
describe('e2e before:browser:launch', () => {
|
|
systemTests.setup()
|
|
|
|
systemTests.it('modifies preferences on disk if DNE', {
|
|
browser: 'chrome',
|
|
config: {
|
|
env: {
|
|
PATH_TO_CHROME_PROFILE,
|
|
},
|
|
},
|
|
project: 'chrome-browser-preferences',
|
|
snapshot: true,
|
|
spec: 'spec.cy.js',
|
|
})
|
|
|
|
systemTests.it('can add extensions', {
|
|
// as of Chrome 137, --load-extension does not work in chrome branded. In order to test this, we need to use the chrome-for-testing browser or chromium.
|
|
browser: ['!webkit', '!chrome'], // TODO(webkit): fix+unskip, or skip and add a test that this fails with WebKit
|
|
spec: 'spec.cy.js',
|
|
headed: true,
|
|
project: 'browser-extensions',
|
|
sanitizeScreenshotDimensions: true,
|
|
snapshot: true,
|
|
onRun: async (exec) => {
|
|
await Fixtures.scaffoldProject('plugin-extension')
|
|
await exec()
|
|
},
|
|
})
|
|
})
|