Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

chore: make animation test wait a bit longer #1844

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions public/docs/_examples/animations/e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ describe('Animation Tests', () => {
expect(li.getCssValue('transform')).toMatch(NO_TRANSFORM_MATRIX_REGEX);
expect(li.getCssValue('opacity')).toMatch('1');

removeHero();
removeHero(700);
expect(li.isPresent()).toBe(false);
});

Expand Down Expand Up @@ -289,19 +289,22 @@ describe('Animation Tests', () => {
});
});

function addActiveHero() {
function addActiveHero(sleep?: number) {
sleep = sleep || 500;
element(by.buttonText('Add active hero')).click();
browser.driver.sleep(500);
browser.driver.sleep(sleep);
}

function addInactiveHero() {
function addInactiveHero(sleep?: number) {
sleep = sleep || 500;
element(by.buttonText('Add inactive hero')).click();
browser.driver.sleep(500);
browser.driver.sleep(sleep);
}

function removeHero() {
function removeHero(sleep?: number) {
sleep = sleep || 500;
element(by.buttonText('Remove hero')).click();
browser.driver.sleep(500);
browser.driver.sleep(sleep);
}

function getScaleX(el: protractor.ElementFinder) {
Expand Down