Explorar el Código

Adjust test to new ui

Johannes Zellner hace 6 años
padre
commit
7960a32e75
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      test/test.js

+ 3 - 1
test/test.js

@@ -140,7 +140,9 @@ describe('Application life cycle test SSO', function () {
         }).then(function () {
             return browser.findElement(by.name('subject')).sendKeys(USER_STORY_SUBJECT);
         }).then(function () {
-            return browser.findElement(by.xpath('//button[@title="Create"]')).sendKeys(Keys.ENTER);
+            return waitForElement(by.xpath('/html/body/div[2]/div/div/div[1]/form/div[2]/button'));
+        }).then(function () {
+            return browser.findElement(by.xpath('/html/body/div[2]/div/div/div[1]/form/div[2]/button')).sendKeys(Keys.ENTER);
         }).then(function () {
             return waitForElement(by.xpath('//span[text()[contains(., "' + USER_STORY_SUBJECT + '")]]'));
         }).then(function () {