Skip to content

Commit 7c9e9ef

Browse files
fix
1 parent 937c6e1 commit 7c9e9ef

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/ControlPlane/ManagedResources.cy.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,10 @@ describe('ManagedResources - Delete Resource', () => {
205205
});
206206

207207
describe('ManagedResources - Edit Resource', () => {
208-
let patchHandlerCreated = false;
209208
let patchCalled = false;
210209
let patchedItem: any = null;
211210

212211
const fakeUseHandleResourcePatch: typeof useHandleResourcePatch = () => {
213-
patchHandlerCreated = true;
214212
return async (item: any) => {
215213
patchCalled = true;
216214
patchedItem = item;
@@ -282,7 +280,6 @@ describe('ManagedResources - Edit Resource', () => {
282280
});
283281

284282
beforeEach(() => {
285-
patchHandlerCreated = false;
286283
patchCalled = false;
287284
patchedItem = null;
288285
});
@@ -302,9 +299,6 @@ describe('ManagedResources - Edit Resource', () => {
302299
</MemoryRouter>,
303300
);
304301

305-
// Verify patch handler was initialized
306-
cy.then(() => cy.wrap(patchHandlerCreated).should('equal', true));
307-
308302
// Expand resource group
309303
cy.get('button[aria-label*="xpand"]').first().click({ force: true });
310304
cy.contains('test-subaccount').should('be.visible');

0 commit comments

Comments
 (0)