mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
chore: attempt to fix flaky graphiql test (#7440)
This commit is contained in:
parent
2700eb11a0
commit
f2a469cdea
1 changed files with 2 additions and 0 deletions
|
|
@ -234,6 +234,8 @@ describe('Execution', () => {
|
|||
const baseHeaders = {
|
||||
accept: 'application/json, multipart/mixed',
|
||||
};
|
||||
// Wait for GraphiQL editor to be ready before clicking execute
|
||||
cy.get('.graphiql-query-editor .cm-s-graphiql').should('exist');
|
||||
cy.intercept('POST', '**/api/lab/**').as('integrityCheck');
|
||||
cy.get(selectors.graphiql.buttonExecute).click();
|
||||
cy.wait('@integrityCheck').its('request.headers.accept').should('include', baseHeaders.accept);
|
||||
|
|
|
|||
Loading…
Reference in a new issue