chore: attempt to fix flaky graphiql test (#7440)

This commit is contained in:
Adam Benhassen 2025-12-17 18:10:29 +02:00 committed by GitHub
parent 2700eb11a0
commit f2a469cdea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);