Skip to content

Commit 6d8ec5d

Browse files
committed
Merge branch 'ui-tests' into 'enterprise'
test(ui): fix unit tests See merge request dkinternal/observability/dataops-observability!20
2 parents 994fc7d + 542de72 commit 6d8ec5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

observability_ui/apps/basic-auth/src/app/login/login.component.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ describe('LoginComponent', () => {
6464
});
6565

6666
it('should set loginError in case of failure', () => {
67-
authService.login.mockReturnValue(throwError(() => 'something happened'));
67+
const error = { message: 'something happened' };
68+
authService.login.mockReturnValue(throwError(() => error));
6869

6970
component.login();
70-
expect(component.loginError).toEqual('Invalid credentials: Wrong email or password.');
71+
expect(component.loginError).toEqual(error.message);
7172
});
7273

7374
it('should log the original error in case of failure', () => {

observability_ui/apps/shell/src/app/projects/integrations/tools/abstract-tool.directive.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ describe('AbstractToolDirective', () => {
169169
});
170170

171171
it('should disable base filled-in fields', () => {
172-
expect(pollingComponent.envListForm.controls['EVENTS_API_HOST'].disabled).toBeTruthy();
173172
expect(pollingComponent.envListForm.controls['EXTERNAL_PLUGINS_PATH'].disabled).toBeTruthy();
174173
expect(pollingComponent.envListForm.controls['ENABLED_PLUGINS'].disabled).toBeTruthy();
175174
expect(pollingComponent.envListForm.controls['PUBLISH_EVENTS'].disabled).toBeTruthy();

0 commit comments

Comments
 (0)