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

OZG-6300 Add data-test-id to button

parent d71eafe8
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<ods-button <ods-button
variant="outline" variant="outline"
text="Anfrage erstellen" text="Anfrage erstellen"
data-test-id="anfrage-erstellen-button" dataTestId="anfrage-erstellen-button"
(clickEmitter)="showRequestForm()" (clickEmitter)="showRequestForm()"
> >
<ods-collaboration-icon icon /> <ods-collaboration-icon icon />
......
...@@ -74,7 +74,7 @@ describe('CollaborationInVorgangContainerComponent', () => { ...@@ -74,7 +74,7 @@ describe('CollaborationInVorgangContainerComponent', () => {
it('should call service on click', () => { it('should call service on click', () => {
fixture.detectChanges(); fixture.detectChanges();
dispatchEventFromFixture(fixture, anfrageErstellenButton, 'clickEmitter'); dispatchEventFromFixture(fixture, anfrageErstellenButton, 'click');
expect(service.showRequestForm).toHaveBeenCalled(); expect(service.showRequestForm).toHaveBeenCalled();
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment