mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-21 22:49:16 -05:00
44 lines
1.1 KiB
TypeScript
44 lines
1.1 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: {
|
|
video: false,
|
|
env: {
|
|
PATH_TO_CHROME_PROFILE,
|
|
},
|
|
},
|
|
project: 'chrome-browser-preferences',
|
|
snapshot: true,
|
|
spec: 'spec.cy.js',
|
|
})
|
|
|
|
systemTests.it('can add extensions', {
|
|
browser: '!webkit', // TODO(webkit): fix+unskip, or skip and add a test that this fails with WebKit
|
|
spec: 'spec.cy.js',
|
|
config: {
|
|
video: false,
|
|
},
|
|
headed: true,
|
|
project: 'browser-extensions',
|
|
sanitizeScreenshotDimensions: true,
|
|
snapshot: true,
|
|
onRun: async (exec) => {
|
|
await Fixtures.scaffoldProject('plugin-extension')
|
|
await exec()
|
|
},
|
|
})
|
|
})
|