mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-06 06:49:18 -06:00
fix last flake
This commit is contained in:
@@ -438,7 +438,6 @@ async function makeE2ETasks () {
|
||||
|
||||
// Handle any pre-loading that should occur based on the launch arg settings
|
||||
await ctx.initializeMode()
|
||||
await ctx.lifecycleManager.waitForInitializeSuccess()
|
||||
|
||||
return {
|
||||
modeOptions,
|
||||
|
||||
@@ -75,26 +75,7 @@ describe('baseUrl', () => {
|
||||
describe('experimentalSingleTabRunMode', () => {
|
||||
it('is a valid config for component testing', () => {
|
||||
cy.scaffoldProject('experimentalSingleTabRunMode')
|
||||
cy.openProject('experimentalSingleTabRunMode', ['--component'])
|
||||
cy.withCtx(async (ctx) => {
|
||||
await ctx.actions.file.writeFileInProject('cypress.config.js', `
|
||||
const { defineConfig } = require('cypress')
|
||||
|
||||
module.exports = defineConfig({
|
||||
component: {
|
||||
experimentalSingleTabRunMode: true,
|
||||
devServer () {
|
||||
// This test doesn't need to actually run any component tests
|
||||
// so we create a fake dev server to make it run faster and
|
||||
// avoid flake on CI.
|
||||
return {
|
||||
port: 1234,
|
||||
close: () => {},
|
||||
}
|
||||
},
|
||||
},
|
||||
})`)
|
||||
})
|
||||
cy.openProject('experimentalSingleTabRunMode', ['--component', '--config-file', 'cypress-component-only.config.js'])
|
||||
|
||||
cy.visitLaunchpad()
|
||||
cy.skipWelcome()
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
const { defineConfig } = require('cypress')
|
||||
|
||||
module.exports = defineConfig({
|
||||
component: {
|
||||
experimentalSingleTabRunMode: true,
|
||||
devServer () {
|
||||
// This test doesn't need to actually run any component tests
|
||||
// so we create a fake dev server to make it run faster and
|
||||
// avoid flake on CI.
|
||||
return {
|
||||
port: 1234,
|
||||
close: () => {},
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user