mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-04 14:00:22 -05:00
9580dc2e35
* chore: update darwin v8 snapshot * BREAKING CHANGE: set video to false by default (system tests need updating). * Update cli/CHANGELOG.md Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com> * chore: update type comments * chore: update protocol snapshot * run ci * run ci * set video to true for chrome browser crash test * chore: put in workaround for failing system test spec to be fixed in 27062 * chore: allow retries on actionability tests to be at least one retry as the CI tests run faster without video on * chore: fix flaky navigation test where done is called multiple times almsot always, but sometimes throws an error --------- Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
40 lines
1.0 KiB
TypeScript
40 lines
1.0 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', {
|
|
browser: '!webkit', // 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()
|
|
},
|
|
})
|
|
})
|