Skip to content

Commit

Permalink
fix: Cypress tests to work with OAuth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Kabo committed Oct 20, 2023
1 parent 718c9c6 commit 1df44cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cypress/e2e/parallel-6/identitySettingsForm.cy.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { user as userResponse } from '../../../client/fixtures/user';
import { signInAndAcceptCookies } from '../../lib/signInAndAcceptCookies';

describe('Settings Form', () => {
beforeEach(() => {
cy.session('auth', () => {
cy.setCookie('gu-cmp-disabled', 'true');
});
signInAndAcceptCookies();

cy.intercept('GET', '/idapi/user', {
body: userResponse,
Expand Down

0 comments on commit 1df44cc

Please sign in to comment.