From bdbf7e0ab183a93745d04d0016cf7d82098c8fb0 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 20 May 2016 19:51:57 +0300 Subject: [PATCH] Fixed e2e tests (button was not clickable) --- tests/e2e/redoc.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/redoc.spec.js b/tests/e2e/redoc.spec.js index 50608752..a34d27d6 100644 --- a/tests/e2e/redoc.spec.js +++ b/tests/e2e/redoc.spec.js @@ -72,6 +72,8 @@ describe('Language tabs sync', () => { var $item = $$('[operation-id="addPet"] tabs > ul > li').last(); // check if correct item expect($item.getText()).toContain('PHP'); + var EC = protractor.ExpectedConditions; + browser.wait(EC.elementToBeClickable($item), 2000); $item.click().then(() => { expect($('[operation-id="updatePet"] li.active').getText()).toContain('PHP'); });