Skip to content

Commit 700c16c

Browse files
committed
Fixing more test parts.
1 parent 7abb8c9 commit 700c16c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eform-client/cypress/e2e/d/device-users.add.spec.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Device users page - Add new device user', function () {
5252
});
5353

5454
describe('Device users page - Should not add new device user', function () {
55-
before(() => {
55+
beforeEach(() => {
5656
cy.visit('http://localhost:4200');
5757
loginPage.login();
5858
cy.intercept('POST', '**/api/device-users/index').as('loadDeviceUsers');
@@ -121,7 +121,7 @@ describe('Device users page - Should not add new device user', function () {
121121
// Find and delete the test user
122122
cy.get('#deviceUserFirstName').each(($el, index) => {
123123
if ($el.text() === nameDeviceUser) {
124-
cy.intercept('POST', '**/api/device-users/delete').as('deleteUser');
124+
cy.intercept('DELETE', '**/api/device-users/delete/*').as('deleteUser');
125125
cy.intercept('POST', '**/api/device-users/index').as('reloadDeviceUsers');
126126
cy.get('#deleteDeviceUserBtn').eq(index).click();
127127
cy.get('#saveDeleteBtn').should('be.visible').click();

0 commit comments

Comments
 (0)