Skip to content

Commit cbf8f2a

Browse files
committed
try
1 parent 8f997e4 commit cbf8f2a

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

packages/graphiql/cypress/e2e/lint.cy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ describe('Linting', () => {
5353

5454
it('Marks syntax errors in variables JSON as error', () => {
5555
cy.visitWithOp({
56-
query: /* GraphQL */ `
57-
query WithVariables($stringArg: String) {
58-
hasArgs(string: $stringArg)
59-
}
60-
`,
56+
query: '',
6157
variablesString: JSON.stringify({ stringArg: '42' }, null, 2).slice(
6258
0,
6359
-1,

packages/graphiql/cypress/e2e/prettify.cy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,9 @@ describeOrSkip('GraphiQL Prettify', () => {
3838

3939
it('should work while click on key map short cut', () => {
4040
cy.visit(`/?query=${rawQuery}&onPrettifyQuery=true`);
41-
// Wait diagnostic error
42-
cy.get('.squiggly-error', { timeout: 9_000 });
43-
// Run shortcut
44-
cy.get('.graphiql-query-editor textarea').type('{shift}{ctrl}P', {
41+
cy.get('.graphiql-query-editor textarea').type('{shift+ctrl+p}', {
4542
force: true,
4643
});
47-
cy.get('.graphiql-query-editor textarea').type('{esc}');
4844
cy.assertHasValues({ query: resultQuery });
4945
});
5046
});

packages/graphiql/cypress/support/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Cypress.Commands.add(
181181
cy.contains(text).trigger('mousemove', {
182182
// Hover in the right corner, because some errors like `Expected comma or closing brace` are
183183
// highlighted at the end
184-
position: 'right',
184+
position: 'bottomRight',
185185
});
186186
cy.contains(message);
187187
});

0 commit comments

Comments
 (0)