Skip to content

Remove flaky tests #309

@juanultimate

Description

@juanultimate

There are a couple of tests that have non-deterministic behavior.
Please fix them:

1) isAdmin false when extension_role !== time-tracker-admin
     AzureAdB2CService
     Error: Expected true to equal false.
    at <Jasmine>
    at UserContext.<anonymous> (http://localhost:9876/_karma_webpack_/src/app/modules/login/services/azure.ad.b2c.service.spec.ts:62:21)
    at ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/node_modules/zone.js/dist/zone-evergreen.js:365:1)
    at ProxyZoneSpec.onInvoke (http://localhost:9876/_karma_webpack_/node_modules/zone.js/dist/zone-testing.js:305:1)

2) on success create customer, the customer form should be disabled
     CustomerTableListComponent
     Uncaught ObjectUnsubscribedError: object unsubscribed thrown

3) When the service returns a value, then LOAD_ENTRIES_BY_TIME_RANGE_SUCCESS should be triggered
     TimeEntryActionEffects
     Error: error getting time entries
    at <Jasmine>
    at http://localhost:9876/_karma_webpack_/src/app/modules/time-clock/store/entry.effects.spec.ts:54:20
    at <Jasmine>
    at http://localhost:9876/_karma_webpack_/node_modules/tslib/tslib.es6.js:74:1

This is a run execution that shows these errors
https://github.com/ioet/time-tracker-ui/pull/308/checks?check_run_id=721779935

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions