SavageLearning / machete-ui

A re-write of the Machete app in Angular12 & Typescript
https://github.com/savagelearning/machete
GNU General Public License v3.0
4 stars 5 forks source link

fix date and address types #104

Closed esteban-gs closed 2 years ago

esteban-gs commented 2 years ago

  Running:  hirer-portal/work-order.spec.ts                                                 (6 of 7)

  hirer portal - work-orders - flow
    ✓ /online-orders/work-order - should show instructions dialog on first view (1994ms)
    ✓ /online-orders/work-order - form should validate date and time (3843ms)
    1) /online-orders/work-order form - required fail should add invalid class
    2) /online-orders/work-order form - required fail should display error message
    ✓ /online-orders/work-order form - should validate description max length (2629ms)
    ✓ /online-orders/work-order form - should save when data is valid (3887ms)
    /online-orders/work-order required vaccinated dropdown
      ✓ field should exist (491ms)
      ✓ should update form when true on save (2455ms)

  6 passing (26s)
  2 failing

  1) hirer portal - work-orders - flow
       /online-orders/work-order form - required fail should add invalid class:
     AssertionError: Timed out retrying after 4000ms: Expected to find element: `input[id="worksiteAddress1"]`, but never found it.
      at eval (http://localhost:4213/__cypress/tests?p=cypress/integration/hirer-portal/work-order.spec.ts:440:34)
  at Array.forEach (<anonymous>)
      at Context.eval (http://localhost:4213/__cypress/tests?p=cypress/integration/hirer-portal/work-order.spec.ts:437:16)

  2) hirer portal - work-orders - flow
       /online-orders/work-order form - required fail should display error message:
     AssertionError: Timed out retrying after 4000ms: Expected to find element: `input[id="worksiteAddress1"]`, but never found it.
      at eval (http://localhost:4213/__cypress/tests?p=cypress/integration/hirer-portal/work-order.spec.ts:477:20)
  at Array.forEach (<anonymous>)
      at Context.eval (http://localhost:4213/__cypress/tests?p=cypress/integration/hirer-portal/work-order.spec.ts:475:16)