Skip to content

Commit

Permalink
[MNT-23433] unit test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AnukritiGL committed Dec 28, 2023
1 parent ecefde8 commit 4f55b0f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/core/src/lib/viewer/components/viewer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,28 +428,22 @@ describe('ViewerComponent', () => {

const infoButton = () => element.querySelector<HTMLButtonElement>('[data-automation-id="adf-toolbar-sidebar"]');

it('should NOT display info button on the right side', (done) => {
it('should NOT display info button on the right side', () => {
component.allowRightSidebar = true;
component.hideInfoButton = true;

fixture.detectChanges();

fixture.whenStable().then(() => {
expect(infoButton()).toBeNull();
done();
});
expect(infoButton()).toBeNull();

Check failure on line 437 in lib/core/src/lib/viewer/components/viewer.component.spec.ts

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
});

it('should display info button on the right side', (done) => {
it('should display info button on the right side', () => {
component.allowRightSidebar = true;
component.hideInfoButton = false;

fixture.detectChanges();

fixture.whenStable().then(() => {
expect(infoButton()).not.toBeNull();
done();
});
expect(infoButton()).not.toBeNull();
});
});

Expand Down

0 comments on commit 4f55b0f

Please sign in to comment.