Skip to content
Snippets Groups Projects
Commit f5a69d6f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5294 Fix reviewed comments

parent fb996152
No related branches found
No related tags found
No related merge requests found
...@@ -135,10 +135,10 @@ describe('AbschliessenButtonComponent', () => { ...@@ -135,10 +135,10 @@ describe('AbschliessenButtonComponent', () => {
}); });
it('should be hidden if in bearbeitung', () => { it('should be hidden if in bearbeitung', () => {
component.vorgang = createVorgangWithEingangResource([ component.vorgang = {
VorgangWithEingangLinkRel.ABSCHLIESSEN, ...createVorgangWithEingangResource([VorgangWithEingangLinkRel.ABSCHLIESSEN]),
]); status: VorgangStatus.IN_BEARBEITUNG,
component.vorgang.status = VorgangStatus.IN_BEARBEITUNG; };
fixture.detectChanges(); fixture.detectChanges();
const buttonElement = fixture.nativeElement.querySelector(abschliessenButton); const buttonElement = fixture.nativeElement.querySelector(abschliessenButton);
...@@ -174,10 +174,10 @@ describe('AbschliessenButtonComponent', () => { ...@@ -174,10 +174,10 @@ describe('AbschliessenButtonComponent', () => {
}); });
it('should be hidden if in bearbeitung', () => { it('should be hidden if in bearbeitung', () => {
component.vorgang = createVorgangWithEingangResource([ component.vorgang = {
VorgangWithEingangLinkRel.ABSCHLIESSEN, ...createVorgangWithEingangResource([VorgangWithEingangLinkRel.ABSCHLIESSEN]),
]); status: VorgangStatus.IN_BEARBEITUNG,
component.vorgang.status = VorgangStatus.IN_BEARBEITUNG; };
fixture.detectChanges(); fixture.detectChanges();
const buttonElement = fixture.nativeElement.querySelector(abschliessenIconButton); const buttonElement = fixture.nativeElement.querySelector(abschliessenIconButton);
......
...@@ -37,6 +37,7 @@ import { ...@@ -37,6 +37,7 @@ import {
} from '@alfa-client/vorgang-shared'; } from '@alfa-client/vorgang-shared';
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MatIcon } from '@angular/material/icon'; import { MatIcon } from '@angular/material/icon';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { ProgressBarComponent } from 'libs/ui/src/lib/ui/progress-bar/progress-bar.component'; import { ProgressBarComponent } from 'libs/ui/src/lib/ui/progress-bar/progress-bar.component';
import { SubnavigationComponent } from 'libs/ui/src/lib/ui/subnavigation/subnavigation.component'; import { SubnavigationComponent } from 'libs/ui/src/lib/ui/subnavigation/subnavigation.component';
import { createVorgangWithEingangResource } from 'libs/vorgang-shared/test/vorgang'; import { createVorgangWithEingangResource } from 'libs/vorgang-shared/test/vorgang';
...@@ -63,10 +64,10 @@ describe('VorgangDetailPageComponent', () => { ...@@ -63,10 +64,10 @@ describe('VorgangDetailPageComponent', () => {
const vorgangWithEingang: VorgangWithEingangResource = createVorgangWithEingangResource(); const vorgangWithEingang: VorgangWithEingangResource = createVorgangWithEingangResource();
const subnavigation: string = 'ozgcloud-subnavigation'; const subnavigation: string = getDataTestIdOf('ozgcloud-subnavigation');
const actionButtons: string = 'alfa-vorgang-detail-action-buttons'; const actionButtons: string = getDataTestIdOf('alfa-vorgang-detail-action-buttons');
const moreMenu: string = 'alfa-vorgang-detail-more-menu'; const moreMenu: string = getDataTestIdOf('alfa-vorgang-detail-more-menu');
const detailArea: string = 'alfa-vorgang-detail-area'; const detailArea: string = getDataTestIdOf('alfa-vorgang-detail-area');
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment