-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(dropdown): Adding tests for different anchors #1274 #1882
Conversation
expect(list).toBeDefined(); | ||
expect(list.items.length).toEqual(4); | ||
button.click(mockObj); | ||
fixture.whenStable().then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you are using faceasync, remove fixture when stable and use tick()
expect(list).toBeDefined(); | ||
expect(list.items.length).toEqual(4); | ||
button.click(mockObj); | ||
fixture.whenStable().then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you are using faceasync, remove fixture when stable and use tick()
expect(list).toBeDefined(); | ||
expect(list.items.length).toEqual(4); | ||
tabs.tabs.toArray()[0].nativeTabItem.nativeElement.dispatchEvent(new Event('click', { bubbles: true })); | ||
fixture.whenStable().then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch to faceasync, remove fixture when stable and use tick()
tick(300); is for some zone.js issue - angular/zone.js#845 |
Closes # .
Additional information related to this pull request:
Adding tests for input, image and igx-tabs