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

Commit ca3817a

Browse files
committed
chore: make animation test wait a bit longer
1 parent d1dd2b8 commit ca3817a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 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,19 @@ describe('Animation Tests', () => {
289289
});
290290
});
291291

292-
function addActiveHero() {
292+
function addActiveHero(sleep = 500) {
293293
element(by.buttonText('Add active hero')).click();
294-
browser.driver.sleep(500);
294+
browser.driver.sleep(sleep);
295295
}
296296

297-
function addInactiveHero() {
297+
function addInactiveHero(sleep = 500) {
298298
element(by.buttonText('Add inactive hero')).click();
299-
browser.driver.sleep(500);
299+
browser.driver.sleep(sleep);
300300
}
301301

302-
function removeHero() {
302+
function removeHero(sleep = 500) {
303303
element(by.buttonText('Remove hero')).click();
304-
browser.driver.sleep(500);
304+
browser.driver.sleep(sleep);
305305
}
306306

307307
function getScaleX(el: protractor.ElementFinder) {

0 commit comments

Comments
 (0)