diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 1c8bfb1fae5..8ec0356413f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -7,6 +7,9 @@ // List of extensions which are recommended for Cypress contributors using VS Code: "recommendations": [ + // Name: Apollo GraphQL + // Description: Rich editor support for GraphQL client and server development that seamlessly integrates with the Apollo platform + "apollographql.vscode-apollo", // Name: ESLint // Description: Integrates ESLint JavaScript into VS Code. "dbaeumer.vscode-eslint", diff --git a/packages/app/cypress/e2e/integration/index.spec.ts b/packages/app/cypress/e2e/integration/index.spec.ts new file mode 100644 index 00000000000..e2143cbb0c1 --- /dev/null +++ b/packages/app/cypress/e2e/integration/index.spec.ts @@ -0,0 +1,21 @@ +describe('Index', () => { + beforeEach(() => { + cy.setupE2E('component-tests') + cy.initializeApp() + }) + + context('with no specs', () => { + beforeEach(() => { + cy.visitApp() + cy.withCtx((ctx, o) => { + ctx.actions.file.removeFileInProject('cypress/integration/integration-spec.js') + }) + }) + + it('shows "Create your first spec"', () => { + // after removing the default scaffolded spec, we should be prompted to create a first spec + cy.visitApp() + cy.contains('Create your first spec') + }) + }) +}) diff --git a/packages/app/src/pages/Index.vue b/packages/app/src/pages/Index.vue index d0f30ea2e7b..8f5575edbfa 100644 --- a/packages/app/src/pages/Index.vue +++ b/packages/app/src/pages/Index.vue @@ -1,7 +1,7 @@