Skip to content

Fix broken cypress tests #7204

@renemadsen

Description

@renemadsen

The d tests are failing, probably due to not waiting for http calls to complete before doing the dom lookup.

Running:  device-users.add.spec.cy.ts                                                     (2 of 4)


  Device users page - Add new device user
    1) should add new device user with first name and last name

  Device users page - Should not add new device user
    ✓ should NOT add device user with only first name (3536ms)
    2) should NOT add device user with only last name
    3) should NOT add device user without first and last names
    4) should NOT create user if cancel was clicked
    5) should clean up created test data


  1 passing (58s)
  5 failing

  1) Device users page - Add new device user
       should add new device user with first name and last name:
     AssertionError: Timed out retrying after 10000ms: Expected to find element: `tbody > tr`, but never found it.
      at Context.eval (webpack://eform-angular/./cypress/e2e/d/device-users.add.spec.cy.ts:25:45)

  2) Device users page - Should not add new device user
       should NOT add device user with only last name:
     AssertionError: Timed out retrying after 10000ms: Expected to find element: `#newDeviceUserBtn`, but never found it.
      at Context.eval (webpack://eform-angular/./cypress/e2e/d/device-users.add.spec.cy.ts:83:52)

  3) Device users page - Should not add new device user
       should NOT add device user without first and last names:
     AssertionError: Timed out retrying after 10000ms: Expected to find element: `#newDeviceUserBtn`, but never found it.
      at Context.eval (webpack://eform-angular/./cypress/e2e/d/device-users.add.spec.cy.ts:94:52)

  4) Device users page - Should not add new device user
       should NOT create user if cancel was clicked:
     AssertionError: Timed out retrying after 10000ms: Expected to find element: `tbody > tr`, but never found it.
      at Context.eval (webpack://eform-angular/./cypress/e2e/d/device-users.add.spec.cy.ts:107:45)

  5) Device users page - Should not add new device user
       should clean up created test data:
     AssertionError: Timed out retrying after 10000ms: Expected to find element: `tbody > tr`, but never found it.
      at Context.eval (webpack://eform-angular/./cypress/e2e/d/device-users.add.spec.cy.ts:128:45)


Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions