Skip to content

Commit

Permalink
update cypress to v11.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Dec 8, 2022
1 parent 3997773 commit 21a67e1
Show file tree
Hide file tree
Showing 20 changed files with 313 additions and 252 deletions.
8 changes: 8 additions & 0 deletions packages/graphiql/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:8080',
},
video: false,
});
4 changes: 0 additions & 4 deletions packages/graphiql/cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import { version } from 'graphql/version';

describe('GraphiQL DocExplorer - button', () => {
before(() => {
cy.visit(`/`);
});
it('Toggles doc pane on', () => {
it('Toggles doc pane on/off', () => {
cy.visit('/');
cy.get('.graphiql-sidebar button').eq(0).click();
cy.get('.graphiql-doc-explorer').should('be.visible');
});

it('Toggles doc pane back off', () => {
cy.get('.graphiql-sidebar button').eq(0).click();
cy.get('.graphiql-doc-explorer').should('not.be.visible');
cy.get('.graphiql-doc-explorer').should('not.exist');
});
});

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 0 additions & 26 deletions packages/graphiql/cypress/plugins/cy-ts-preprocessor.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/graphiql/cypress/plugins/index.js

This file was deleted.

3 changes: 3 additions & 0 deletions packages/graphiql/cypress/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default (on, config) => {
return config;
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ***********************************************************
// This example support/index.js is processed and
// This example support/e2e.ts is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
Expand All @@ -14,10 +14,4 @@
// ***********************************************************
/// <reference types="cypress" />

// import '@cypress/code-coverage/support';

// Import commands.js using ES2015 syntax:
// import './commands';

// Alternatively you can use CommonJS syntax:
require('./commands');
import './commands';
8 changes: 3 additions & 5 deletions packages/graphiql/cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"compilerOptions": {
"rootDir": ".",
"typeRoots": ["./support"],
"lib": ["DOM", "ESNext"],
"types": ["cypress"],
"outDir": "dist"
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts"]
}
2 changes: 1 addition & 1 deletion packages/graphiql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"cross-env": "^7.0.2",
"css-loader": "^3.5.1",
"cssnano": "^4.1.10",
"cypress": "^4.7.0",
"cypress": "^12.0.2",
"express": "^4.17.3",
"express-graphql": "experimental-stream-defer",
"fork-ts-checker-webpack-plugin": "4.1.3",
Expand Down
5 changes: 1 addition & 4 deletions packages/graphiql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
"exclude": [
"**/__tests__/**",
"**/dist/**.*",
"**/*.spec.ts",
"**/*.spec.js",
"**/*-test.ts",
"**/*-test.js",
"cypress/**",
"**/*.stories.js",
"**/*.stories.ts",
"**/*.stories.tsx"
Expand Down
Loading

0 comments on commit 21a67e1

Please sign in to comment.