Skip to content

Commit

Permalink
Update packages/graphiql/cypress/e2e/theme.cy.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>
  • Loading branch information
TuvalSimha and dimaMachina committed Aug 27, 2023
1 parent 694eb5a commit a7f31d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphiql/cypress/e2e/theme.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Theme', () => {

it('Defaults to light theme when forcedTheme value is invalid', () => {
cy.visit('/?query={test}&forcedTheme=invalid');
cy.get('body').should('have.class', 'graphiql-light'); // Check for the class indicating light theme
cy.get('body').should('have.class', 'graphiql-light');
cy.get('.graphiql-dialog-section-title').should('have.text', 'Theme'); // Check for the presence of the theme dialog
});
});

0 comments on commit a7f31d5

Please sign in to comment.