Skip to content

Commit ea623b2

Browse files
mock delegation feature flag
1 parent a35e190 commit ea623b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/manager/cypress/e2e/core/parentChild/account-switching.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
mockGetUser,
2323
} from 'support/intercepts/account';
2424
import { mockGetEvents, mockGetNotifications } from 'support/intercepts/events';
25+
import { mockAppendFeatureFlags } from 'support/intercepts/feature-flags';
2526
import { mockAllApiRequests } from 'support/intercepts/general';
2627
import {
2728
mockGetRolePermissionsError,
@@ -151,6 +152,10 @@ const mockAlternateChildAccountToken = appTokenFactory.build({
151152
const mockErrorMessage = 'An unknown error has occurred.';
152153

153154
describe('Parent/Child account switching', () => {
155+
beforeEach(() => {
156+
// Disable IAM delegation to use legacy child accounts flow for all tests
157+
mockAppendFeatureFlags({ iamDelegation: false });
158+
});
154159
/*
155160
* Tests to confirm that Parent account users can switch to Child accounts as expected.
156161
*/

0 commit comments

Comments
 (0)