Browse Source

Adjust test to new ui

Johannes Zellner 6 years ago
parent
commit
7960a32e75
1 changed files with 3 additions and 1 deletions
  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 () {