Skip to content

Filings UI - Fix Broken unit tests after package updates #16525

Closed

Description

@JazzarKarim

Need to handle:

In allowable-actions-mixin.spec.ts:

  • fix identifies whether Business Information is allowed - Coop
  • fix identifies whether Business Summary is allowed
  • fix identifies whether Consent Continuation Out is allowed
  • fix identifies whether Correction is allowed
  • fix identifies whether Voluntary Dissolution is allowed

In Directors.spec.ts, without intializing dir in the script, some tests fail due to reading properties of null (reading dir.id).

  • fix displays the warning message for too few directors see below
  • fix handles "undo ceased" action see below
  • fix handles "ceased" action see below

I couldn't find why dir needed to be defined in this case and not others, and I don't think it's worth extra time searching for an answer, so I cleaned this up a bit and left it.

Activity

  1. severinbeauvais commented on May 25, 2023

    @severinbeauvais
    Collaborator

    I'm going to work on this to help out Karim.

  2. severinbeauvais commented on May 26, 2023

    @severinbeauvais
    Collaborator

    Test Notes

    A variable was cleaned up in the directors component (a difference you won't notice).

    Otherwise, these changes are just fixes to unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions