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

OZG-6302 rename zustaendige-stelle-container -> collaboration-request-container (P3 -final)

parent 8d42d148
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
</ng-template> </ng-template>
<ng-container *ngIf="isAnfrageFormularVisible$ | async; else anfrageErstellenButton"> <ng-container *ngIf="isAnfrageFormularVisible$ | async; else anfrageErstellenButton">
<alfa-zustaendige-stelle-container <alfa-collaboration-request-container
data-test-id="zustaendige-stelle-container" data-test-id="collaboration-request-container"
(hideFormular)="hideFormular()" (hideFormular)="hideFormular()"
></alfa-zustaendige-stelle-container> ></alfa-collaboration-request-container>
</ng-container> </ng-container>
...@@ -12,14 +12,14 @@ import { getDataTestIdOf } from 'libs/tech-shared/test/data-test'; ...@@ -12,14 +12,14 @@ import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { MockComponent } from 'ng-mocks'; import { MockComponent } from 'ng-mocks';
import { of } from 'rxjs'; import { of } from 'rxjs';
import { CollaborationInVorgangContainerComponent } from './collaboration-in-vorgang-container.component'; import { CollaborationInVorgangContainerComponent } from './collaboration-in-vorgang-container.component';
import { ZustaendigeStelleContainerComponent } from './zustaendige-stelle-container/zustaendige-stelle-container.component'; import { CollaborationRequestContainerComponent } from './collaboration-request-container/collaboration-request-container.component';
describe('CollaborationInVorgangContainerComponent', () => { describe('CollaborationInVorgangContainerComponent', () => {
let component: CollaborationInVorgangContainerComponent; let component: CollaborationInVorgangContainerComponent;
let fixture: ComponentFixture<CollaborationInVorgangContainerComponent>; let fixture: ComponentFixture<CollaborationInVorgangContainerComponent>;
const anfrageErstellenButton: string = getDataTestIdOf('anfrage-erstellen-button'); const anfrageErstellenButton: string = getDataTestIdOf('anfrage-erstellen-button');
const zustaendigeStelleContainer: string = getDataTestIdOf('zustaendige-stelle-container'); const collaborationRequestContainer: string = getDataTestIdOf('collaboration-request-container');
const service: Mock<CollaborationService> = { const service: Mock<CollaborationService> = {
...mock(CollaborationService), ...mock(CollaborationService),
...@@ -31,7 +31,7 @@ describe('CollaborationInVorgangContainerComponent', () => { ...@@ -31,7 +31,7 @@ describe('CollaborationInVorgangContainerComponent', () => {
imports: [ButtonComponent, SaveIconComponent], imports: [ButtonComponent, SaveIconComponent],
declarations: [ declarations: [
CollaborationInVorgangContainerComponent, CollaborationInVorgangContainerComponent,
MockComponent(ZustaendigeStelleContainerComponent), MockComponent(CollaborationRequestContainerComponent),
MockComponent(CollaborationIconComponent), MockComponent(CollaborationIconComponent),
], ],
providers: [ providers: [
...@@ -97,13 +97,13 @@ describe('CollaborationInVorgangContainerComponent', () => { ...@@ -97,13 +97,13 @@ describe('CollaborationInVorgangContainerComponent', () => {
it('should be shown', () => { it('should be shown', () => {
fixture.detectChanges(); fixture.detectChanges();
existsAsHtmlElement(fixture, zustaendigeStelleContainer); existsAsHtmlElement(fixture, collaborationRequestContainer);
}); });
it('should call service on hideFormular output', () => { it('should call service on hideFormular output', () => {
fixture.detectChanges(); fixture.detectChanges();
dispatchEventFromFixture(fixture, zustaendigeStelleContainer, 'hideFormular'); dispatchEventFromFixture(fixture, collaborationRequestContainer, 'hideFormular');
expect(service.hideAnfrageFormular).toHaveBeenCalled(); expect(service.hideAnfrageFormular).toHaveBeenCalled();
}); });
...@@ -114,7 +114,7 @@ describe('CollaborationInVorgangContainerComponent', () => { ...@@ -114,7 +114,7 @@ describe('CollaborationInVorgangContainerComponent', () => {
fixture.detectChanges(); fixture.detectChanges();
notExistsAsHtmlElement(fixture, zustaendigeStelleContainer); notExistsAsHtmlElement(fixture, collaborationRequestContainer);
}); });
}); });
}); });
...@@ -13,7 +13,7 @@ ICON_PLATZHALTER ...@@ -13,7 +13,7 @@ ICON_PLATZHALTER
<ods-button <ods-button
variant="outline" variant="outline"
text="Abbrechen" text="Abbrechen"
data-test-id="zustaendige-stelle-abbrechen-button" data-test-id="collaboration-request-abbrechen-button"
(clickEmitter)="hideFormular.emit()" (clickEmitter)="hideFormular.emit()"
> >
<ods-close-icon icon class="fill-text"></ods-close-icon> <ods-close-icon icon class="fill-text"></ods-close-icon>
......
...@@ -3,27 +3,27 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; ...@@ -3,27 +3,27 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ButtonComponent, CloseIconComponent, SaveIconComponent } from '@ods/system'; import { ButtonComponent, CloseIconComponent, SaveIconComponent } from '@ods/system';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test'; import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { MockComponent } from 'ng-mocks'; import { MockComponent } from 'ng-mocks';
import { CollaborationRequestContainerComponent } from './collaboration-request-container.component';
import { CollaborationRequestFormComponent } from './collaboration-request-form/collaboration-request-form.component'; import { CollaborationRequestFormComponent } from './collaboration-request-form/collaboration-request-form.component';
import { ZustaendigeStelleContainerComponent } from './zustaendige-stelle-container.component';
describe('ZustaendigeStelleContainerComponent', () => { describe('CollaborationRequestContainerComponent', () => {
let component: ZustaendigeStelleContainerComponent; let component: CollaborationRequestContainerComponent;
let fixture: ComponentFixture<ZustaendigeStelleContainerComponent>; let fixture: ComponentFixture<CollaborationRequestContainerComponent>;
const abbrechenButton: string = getDataTestIdOf('zustaendige-stelle-abbrechen-button'); const abbrechenButton: string = getDataTestIdOf('collaboration-request-abbrechen-button');
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [ButtonComponent], imports: [ButtonComponent],
declarations: [ declarations: [
ZustaendigeStelleContainerComponent, CollaborationRequestContainerComponent,
MockComponent(SaveIconComponent), MockComponent(SaveIconComponent),
MockComponent(CloseIconComponent), MockComponent(CloseIconComponent),
MockComponent(CollaborationRequestFormComponent), MockComponent(CollaborationRequestFormComponent),
], ],
}).compileComponents(); }).compileComponents();
fixture = TestBed.createComponent(ZustaendigeStelleContainerComponent); fixture = TestBed.createComponent(CollaborationRequestContainerComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });
......
import { Component, EventEmitter, Output } from '@angular/core'; import { Component, EventEmitter, Output } from '@angular/core';
@Component({ @Component({
selector: 'alfa-zustaendige-stelle-container', selector: 'alfa-collaboration-request-container',
templateUrl: './zustaendige-stelle-container.component.html', templateUrl: './collaboration-request-container.component.html',
}) })
export class ZustaendigeStelleContainerComponent { export class CollaborationRequestContainerComponent {
@Output() public hideFormular: EventEmitter<void> = new EventEmitter<void>(); @Output() public hideFormular: EventEmitter<void> = new EventEmitter<void>();
} }
...@@ -10,8 +10,8 @@ import { ...@@ -10,8 +10,8 @@ import {
SaveIconComponent, SaveIconComponent,
} from '@ods/system'; } from '@ods/system';
import { CollaborationInVorgangContainerComponent } from './collaboration-in-vorgang-container/collaboration-in-vorgang-container.component'; import { CollaborationInVorgangContainerComponent } from './collaboration-in-vorgang-container/collaboration-in-vorgang-container.component';
import { CollaborationRequestFormComponent } from './collaboration-in-vorgang-container/zustaendige-stelle-container/collaboration-request-form/collaboration-request-form.component'; import { CollaborationRequestContainerComponent } from './collaboration-in-vorgang-container/collaboration-request-container/collaboration-request-container.component';
import { ZustaendigeStelleContainerComponent } from './collaboration-in-vorgang-container/zustaendige-stelle-container/zustaendige-stelle-container.component'; import { CollaborationRequestFormComponent } from './collaboration-in-vorgang-container/collaboration-request-container/collaboration-request-form/collaboration-request-form.component';
@NgModule({ @NgModule({
imports: [ imports: [
...@@ -28,7 +28,7 @@ import { ZustaendigeStelleContainerComponent } from './collaboration-in-vorgang- ...@@ -28,7 +28,7 @@ import { ZustaendigeStelleContainerComponent } from './collaboration-in-vorgang-
], ],
declarations: [ declarations: [
CollaborationInVorgangContainerComponent, CollaborationInVorgangContainerComponent,
ZustaendigeStelleContainerComponent, CollaborationRequestContainerComponent,
CollaborationRequestFormComponent, CollaborationRequestFormComponent,
], ],
exports: [CollaborationInVorgangContainerComponent], exports: [CollaborationInVorgangContainerComponent],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment