Skip to content

Commit

Permalink
test: add sleep to tab pane tests to fix flakes on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbcross committed Jun 13, 2014
1 parent 912dae5 commit f2416a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/angularjs.org.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('Angularjs.org', function () {
it('should show a secondary tab when selected', function () {
var todoJsTab = tractor.findElement(protractor.By.css('[annotate="todo.annotation"] ul.nav-tabs li:nth-child(2) a'));
todoJsTab.click()

tractor.driver.sleep(100);
var todojs = tractor.findElement(protractor.By.css('[annotate="todo.annotation"] .tab-pane:nth-child(2)'));
expect(todojs.getCssValue('display')).toEqual('block');
});
Expand All @@ -148,7 +148,7 @@ describe('Angularjs.org', function () {
it('should show a secondary tab when selected', function () {
var listBtn = tractor.findElement(protractor.By.css('[annotate="project.annotation"] ul.nav-tabs li:nth-child(2) a'));
listBtn.click();

tractor.driver.sleep(100);
var listTab = tractor.findElement(protractor.By.css('[module="project"] .tab-pane:nth-child(2)'));
expect(listTab.getCssValue('display')).toEqual('block');
});
Expand Down

0 comments on commit f2416a7

Please sign in to comment.