Skip to content

Commit

Permalink
chore: add alpha nuxt tag (#21229)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
  • Loading branch information
ZachJW34 and tgriesser authored May 1, 2022
1 parent 0c7460f commit 1289b01
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
22 changes: 17 additions & 5 deletions packages/launchpad/cypress/e2e/project-setup.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,12 +706,24 @@ describe('Launchpad: Setup Project', () => {

cy.get('[data-cy-testingtype="component"]').click()
cy.get('[data-testid="select-framework"]').click()
cy.findByText('Nuxt.js').click()
cy.findByText('Vue.js 3').click()
cy.contains('button', 'Pick a bundler').click()
cy.findByText('Webpack').click()
cy.findByRole('button', { name: 'Next Step' }).should('not.be.disabled').click()
cy.intercept('POST', 'mutation-InstallDependencies_scaffoldFiles', (req) => {
req.continue((res) => {
// Force the response to have "changes", in the situation where we can't deal with it
res.body.data.scaffoldTestingType.scaffoldedFiles[0].status = 'changes'
cy.withCtx(async (ctx) => {
Object.defineProperty(ctx.coreData, 'scaffoldedFiles', {
get () {
return this._scaffoldedFiles.map((scaffold) => {
if (scaffold.file.absolute.includes('cypress.config')) {
return { ...scaffold, status: 'changes' }
}

return scaffold
})
},
set (scaffoldedFiles) {
this._scaffoldedFiles = scaffoldedFiles
},
})
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ describe('scaffolding component testing', {
startSetupFor('nuxtjs-vue2-unconfigured')

// should detect correctly
cy.get('button').should('be.visible').contains('Nuxt.js(detected)')
cy.get('button').contains('Next Step').click()
// Screen reader text is "Support is in", but don't want to rely on DOM introduced whitespace so using regex
cy.contains('button', /Nuxt\.js \(v2\)\s+Support is in\s+Alpha\(detected\)/).should('be.visible')
cy.contains('button', 'Next Step').click()
cy.findByRole('button', { name: 'Continue' }).click()
// Don't verify this config file b/c we've had to modify it to get vue2 resolving
// verifyConfigFile(`cypress.config.js`)
verifyConfigFile(`cypress.config.js`)
})
})
})
4 changes: 2 additions & 2 deletions packages/scaffold-config/src/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const WIZARD_FRAMEWORKS = [
type: 'nuxtjs',
configFramework: 'nuxt',
category: 'template',
name: 'Nuxt.js',
name: 'Nuxt.js (v2)',
detectors: [dependencies.WIZARD_DEPENDENCY_NUXT],
supportedBundlers: [dependencies.WIZARD_DEPENDENCY_WEBPACK],
dependencies: (bundler: WizardBundler, projectPath: string): DependencyToInstall[] => {
Expand All @@ -220,7 +220,7 @@ export const WIZARD_FRAMEWORKS = [
codeGenFramework: 'vue',
glob: '*.vue',
mountModule: 'cypress/vue2',
supportStatus: 'full',
supportStatus: 'alpha',
componentIndexHtml: componentIndexHtmlGenerator(),
},
{
Expand Down

3 comments on commit 1289b01

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1289b01 May 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/linux-x64/10.0-release-1289b01947a28a77048114aa63cbcd62d9ff52ee/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1289b01 May 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/darwin-x64/10.0-release-1289b01947a28a77048114aa63cbcd62d9ff52ee/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1289b01 May 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/win32-x64/10.0-release-1289b01947a28a77048114aa63cbcd62d9ff52ee/cypress.tgz

Please sign in to comment.