Skip to content

Commit 26575df

Browse files
Copilotrenemadsen
andcommitted
Remove saveMenuEdit intercepts to match reference implementation
Co-authored-by: renemadsen <[email protected]>
1 parent 47115de commit 26575df

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

eform-client/cypress/e2e/c/navigation-menu.drag-item.spec.cy.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ describe('Navigation menu - Drag item', function () {
7474
.should('have.value', translation);
7575
});
7676

77-
cy.intercept('PUT', '**/api/navigation-menu').as('saveMenuEdit');
7877
navigationMenuPage.editItemSave();
79-
cy.wait('@saveMenuEdit', { timeout: 30000 });
8078
});
8179
});
8280
});

eform-client/cypress/e2e/c/navigation-menu.edit-item.spec.cy.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ describe('Navigation menu - Edit item', function () {
6060
cy.get(`#editItemTranslation${count - 1}_0_${i}`).should('have.value', translation);
6161
});
6262

63-
cy.intercept('PUT', '**/api/navigation-menu').as('saveMenuEdit');
6463
navigationMenuPage.editItemSave();
65-
cy.wait('@saveMenuEdit', { timeout: 30000 });
6664
});
6765
});
6866

@@ -109,9 +107,7 @@ describe('Navigation menu - Edit item', function () {
109107
cy.get(`#editItemTranslation${count - 1}_0_${i}`).should('have.value', translation);
110108
});
111109

112-
cy.intercept('PUT', '**/api/navigation-menu').as('saveMenuEdit');
113110
navigationMenuPage.editItemSave();
114-
cy.wait('@saveMenuEdit', { timeout: 30000 });
115111
});
116112
});
117113

@@ -142,9 +138,7 @@ describe('Navigation menu - Edit item', function () {
142138

143139
cy.get('#editLinkInput').should('have.value', data.link);
144140

145-
cy.intercept('PUT', '**/api/navigation-menu').as('saveMenuEdit');
146141
navigationMenuPage.editItemSave();
147-
cy.wait('@saveMenuEdit', { timeout: 30000 });
148142
});
149143

150144
it('element must be updated on translation fields', () => {
@@ -164,9 +158,7 @@ describe('Navigation menu - Edit item', function () {
164158
}
165159
});
166160

167-
cy.intercept('PUT', '**/api/navigation-menu').as('saveMenuEdit');
168161
navigationMenuPage.editItemSave();
169-
cy.wait('@saveMenuEdit', { timeout: 30000 });
170162
});
171163

172164
afterEach(() => {

0 commit comments

Comments
 (0)