Skip to content
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

Merged
merged 4 commits into from
Jul 4, 2018

Conversation

dafo
Copy link
Contributor

@dafo dafo commented Jul 3, 2018

Closes # .

Additional information related to this pull request:
Adding tests for input, image and igx-tabs

expect(list).toBeDefined();
expect(list.items.length).toEqual(4);
button.click(mockObj);
fixture.whenStable().then(() => {
Copy link
Contributor

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(() => {
Copy link
Contributor

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(() => {
Copy link
Contributor

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()

@dafo
Copy link
Contributor Author

dafo commented Jul 3, 2018

tick(300); is for some zone.js issue - angular/zone.js#845

@bazal4o bazal4o merged commit d13d8db into master Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants