Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/launchpad/cypress/e2e/open-mode.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,18 @@ describe('Launchpad: Open Mode', () => {

cy.withCtx(async (ctx, o) => {
// Trigger actual wizard initialization to occur
(ctx.actions.wizard.initialize as SinonStub).wrappedMethod.apply(ctx.actions.wizard)
await (ctx.actions.wizard.initialize as SinonStub).wrappedMethod.apply(ctx.actions.wizard)
})

// Verify that auto-detection has fired via the real initialize call and updated data
// has flowed through to populate UI
cy.get('[data-testid="select-bundler"]').as('bundler')

cy.get('@framework').within(() => {
cy.contains('React.js').should('be.visible')
cy.contains('React.js', { timeout: 15000 }).should('be.visible')
cy.contains('(detected)').should('be.visible')
})

cy.get('[data-testid="select-bundler"]', { timeout: 15000 }).as('bundler')

cy.get('@bundler').within(() => {
cy.contains('Vite').should('be.visible')
cy.contains('(detected)').should('be.visible')
Expand Down
Loading