Fixed e2e tests (button was not clickable)

This commit is contained in:
Roman Hotsiy 2016-05-20 19:51:57 +03:00
parent 9c5d002eda
commit bdbf7e0ab1

View File

@ -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');
});