Skip to content

Review console messages in Vue tests #428

Description

@jpmckinney

They are currently the same as in 55d60df (Quinta's last commit).

Error-level

  • "[Vue warn]: Error in created hook (Promise/async): "TypeError: Cannot read properties of null (reading 'tables')"" and "TypeError: Cannot read properties of null (reading 'tables') at VueComponent.created (spoonbill-web/frontend/src/views/CustomizeTables.vue:74:27)" in unit/views/CustomizeTables.spec.js

Commenting out store.dispatch = jest.fn(); in the "gets selections once created" test prevents the error message, but then the expect(router.push).toBeCalledTimes(1); expectation fails.

  • 2x "Event { isTrusted: [Getter] }" in unit/views/Download.spec.js

The three tests in Download.spec.js that log error messages are the only ones to interact with the component's subscribeOnChanges, scheduleFlattenGeneration (which calls subscribeOnChanges), and generateFile (which calls scheduleFlattenGeneration). The subscribeOnChanges function might be the cause; commenting out its setupConnection prevents the error messages, but then the test fails.

Warning-level

  • 3x "[Vuetify] Unable to locate target [data-app]" across unit/components/App/AppConfirmDialog.spec.js and unit/components/CustomizeTables/CustomizeDialog.spec.js

These warnings might be because the two components being tested are dialogs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions