Skip to content

Commit 030ef06

Browse files
committed
refactor(tests): tabs and bottom nav tests
1 parent d54028f commit 030ef06

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

projects/igniteui-angular/src/lib/tabs/bottom-nav/bottom-nav.component.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ import { IgxBottomNavComponent, IgxBottomNavItemComponent } from './public_api';
1515
import { UIInteractions } from '../../test-utils/ui-interactions.spec';
1616
import { RoutingTestGuard } from '../../test-utils/routing-test-guard.spec';
1717
import { RoutingView1Component, RoutingView2Component, RoutingView3Component, RoutingView4Component, RoutingView5Component } from '../../test-utils/routing-view-components.spec';
18-
import { configureTestSuite } from '../../test-utils/configure-suite';
1918

2019
describe('IgxBottomNav', () => {
21-
configureTestSuite();
2220

2321
const tabItemNormalCssClass = 'igx-bottom-nav__menu-item';
2422
const tabItemSelectedCssClass = 'igx-bottom-nav__menu-item--selected';
@@ -30,7 +28,7 @@ describe('IgxBottomNav', () => {
3028
{ path: 'view5', component: RoutingView5Component, canActivate: [RoutingTestGuard] },
3129
];
3230

33-
beforeAll(waitForAsync(() => {
31+
beforeEach(waitForAsync(() => {
3432
TestBed.configureTestingModule({
3533
imports: [
3634
NoopAnimationsModule,

projects/igniteui-angular/src/lib/tabs/tabs/tabs.component.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { UIInteractions, wait } from '../../test-utils/ui-interactions.spec';
1919
import { IgxTabContentComponent } from './tab-content.component';
2020
import { RoutingTestGuard } from '../../test-utils/routing-test-guard.spec';
2121
import { RoutingView1Component, RoutingView2Component, RoutingView3Component, RoutingView4Component, RoutingView5Component } from '../../test-utils/routing-view-components.spec';
22-
import { configureTestSuite } from '../../test-utils/configure-suite';
2322

2423
const KEY_RIGHT_EVENT = new KeyboardEvent('keydown', { key: 'ArrowRight', bubbles: true });
2524
const KEY_LEFT_EVENT = new KeyboardEvent('keydown', { key: 'ArrowLeft', bubbles: true });
@@ -29,7 +28,6 @@ const KEY_ENTER_EVENT = new KeyboardEvent('keydown', { key: 'Enter', bubbles: tr
2928
const KEY_SPACE_EVENT = new KeyboardEvent('keydown', { key: ' ', bubbles: true });
3029

3130
describe('IgxTabs', () => {
32-
configureTestSuite();
3331

3432
const tabItemNormalCssClass = 'igx-tabs__header-item';
3533
const tabItemSelectedCssClass = 'igx-tabs__header-item--selected';
@@ -42,7 +40,8 @@ describe('IgxTabs', () => {
4240
{ path: 'view5', component: RoutingView5Component, canActivate: [RoutingTestGuard] }
4341
];
4442

45-
beforeAll(waitForAsync(() => {
43+
beforeEach(waitForAsync(() => {
44+
4645
TestBed.configureTestingModule({
4746
imports: [
4847
NoopAnimationsModule,

0 commit comments

Comments
 (0)