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

Commit 961f5c8

Browse files
Foxandxsswardbell
authored andcommitted
chore: make animation test wait a bit longer
closes #1844
1 parent 50b51f6 commit 961f5c8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

public/docs/_examples/animations/e2e-spec.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('Animation Tests', () => {
255255
expect(li.getCssValue('transform')).toMatch(NO_TRANSFORM_MATRIX_REGEX);
256256
expect(li.getCssValue('opacity')).toMatch('1');
257257

258-
removeHero();
258+
removeHero(700);
259259
expect(li.isPresent()).toBe(false);
260260
});
261261

@@ -289,19 +289,22 @@ describe('Animation Tests', () => {
289289
});
290290
});
291291

292-
function addActiveHero() {
292+
function addActiveHero(sleep?: number) {
293+
sleep = sleep || 500;
293294
element(by.buttonText('Add active hero')).click();
294-
browser.driver.sleep(500);
295+
browser.driver.sleep(sleep);
295296
}
296297

297-
function addInactiveHero() {
298+
function addInactiveHero(sleep?: number) {
299+
sleep = sleep || 500;
298300
element(by.buttonText('Add inactive hero')).click();
299-
browser.driver.sleep(500);
301+
browser.driver.sleep(sleep);
300302
}
301303

302-
function removeHero() {
304+
function removeHero(sleep?: number) {
305+
sleep = sleep || 500;
303306
element(by.buttonText('Remove hero')).click();
304-
browser.driver.sleep(500);
307+
browser.driver.sleep(sleep);
305308
}
306309

307310
function getScaleX(el: protractor.ElementFinder) {

0 commit comments

Comments
 (0)