fix last flake

This commit is contained in:
Ryan Manuel
2023-08-28 19:48:06 -05:00
parent 9a0481f745
commit ca7bad2e16
3 changed files with 17 additions and 21 deletions

View File

@@ -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,

View File

@@ -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()

View File

@@ -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: () => {},
}
},
},
})