Skip to content
Snippets Groups Projects
Commit b4ec43ea authored by Alexander Reifschneider's avatar Alexander Reifschneider
Browse files

OZG-7971 improve quality (mr comments)

parent fa801744
No related branches found
No related tags found
Loading
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
import { BescheidResource, BescheidService } from '@alfa-client/bescheid-shared'; import { BescheidResource, BescheidService } from '@alfa-client/bescheid-shared';
import { CommandResource } from '@alfa-client/command-shared'; import { CommandResource } from '@alfa-client/command-shared';
import { StateResource } from '@alfa-client/tech-shared'; import { StateResource } from '@alfa-client/tech-shared';
import { createDialogRefMock, DialogRefMock, mock, Mock, triggerEvent } from '@alfa-client/test-utils'; import { createDialogRefMock, DialogRefMock, getMockComponent, mock, Mock, triggerEvent } from '@alfa-client/test-utils';
import { createDialogResult } from '@alfa-client/ui-shared'; import { createDialogResult } from '@alfa-client/ui-shared';
import { VorgangWithEingangResource } from '@alfa-client/vorgang-shared'; import { VorgangWithEingangResource } from '@alfa-client/vorgang-shared';
import { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog'; import { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';
...@@ -149,6 +149,18 @@ describe('BescheidWizardAbschliessenDialogContainerComponent', () => { ...@@ -149,6 +149,18 @@ describe('BescheidWizardAbschliessenDialogContainerComponent', () => {
}); });
describe('überspringen und abschließen button', () => { describe('überspringen und abschließen button', () => {
describe('input', () => {
it('should set stateResource', () => {
const commandStateResource: StateResource<CommandResource> = createSuccessfullyDoneCommandStateResource();
component.abschliessen$ = of(commandStateResource);
const mockButton: ButtonWithSpinnerComponent = getMockComponent(fixture, ButtonWithSpinnerComponent);
fixture.detectChanges();
expect(mockButton._stateResource).toBe(commandStateResource);
});
});
describe('output', () => { describe('output', () => {
it('should call onConfirm', () => { it('should call onConfirm', () => {
component.onConfirm = jest.fn(); component.onConfirm = jest.fn();
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
Auch nach weiteren Versuchen konnte keine Verbindung aufgebaut werden. <br /> Auch nach weiteren Versuchen konnte keine Verbindung aufgebaut werden. <br />
Bitte wenden Sie sich an Ihren Administrator. Bitte wenden Sie sich an Ihren Administrator.
</p> </p>
<ods-button class="mt-4" variant="outline" text="Reload" dataTestId="reload-button" (click)="reload()"> <ods-button class="mt-4" variant="outline" text="Reload" dataTestId="reload-button" (clickEmitter)="reload()">
<ods-icon icon name="refresh" /> <ods-icon icon name="refresh" />
</ods-button> </ods-button>
</mat-dialog-content> </mat-dialog-content>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment