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

OZG-6311 OZG-6534 Remove unnecessary ngIf

parent 5651a92b
Branches
Tags
No related merge requests found
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
| hasLink: collaborationListLinkRel.CREATE_COLLABORATION_REQUEST | hasLink: collaborationListLinkRel.CREATE_COLLABORATION_REQUEST
" "
> >
<ng-container *ngIf="!collaboration" data-test-id="collaboration-in-progres">
<ng-template #anfrageErstellenButton> <ng-template #anfrageErstellenButton>
<ods-button <ods-button
variant="outline" variant="outline"
...@@ -25,7 +24,6 @@ ...@@ -25,7 +24,6 @@
></alfa-collaboration-request-form> ></alfa-collaboration-request-form>
</ng-container> </ng-container>
</ng-container> </ng-container>
</ng-container>
<ng-container *ngIf="collaboration"> <ng-container *ngIf="collaboration">
<div data-test-id="collaboration-request-result"> <div data-test-id="collaboration-request-result">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
......
...@@ -31,7 +31,6 @@ describe('CollaborationInVorgangComponent', () => { ...@@ -31,7 +31,6 @@ describe('CollaborationInVorgangComponent', () => {
const anfrageErstellenButton: string = getDataTestIdAttributeOf('anfrage-erstellen-button'); const anfrageErstellenButton: string = getDataTestIdAttributeOf('anfrage-erstellen-button');
const collaborationRequestForm: string = getDataTestIdOf('collaboration-request-form'); const collaborationRequestForm: string = getDataTestIdOf('collaboration-request-form');
const collaborationRequestResult: string = getDataTestIdOf('collaboration-request-result'); const collaborationRequestResult: string = getDataTestIdOf('collaboration-request-result');
const collaborationInProgress: string = getDataTestIdOf('collaboration-in-progress');
const collaborationListResource: CollaborationListResource = createCollaborationListResource(); const collaborationListResource: CollaborationListResource = createCollaborationListResource();
...@@ -168,14 +167,6 @@ describe('CollaborationInVorgangComponent', () => { ...@@ -168,14 +167,6 @@ describe('CollaborationInVorgangComponent', () => {
existsAsHtmlElement(fixture, collaborationRequestResult); existsAsHtmlElement(fixture, collaborationRequestResult);
}); });
it('should not show collaboration in progress', () => {
component.collaboration = undefined;
fixture.detectChanges();
notExistsAsHtmlElement(fixture, collaborationRequestResult);
});
}); });
describe('set collaboration', () => { describe('set collaboration', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment