Pārlūkot izejas kodu

Fix LoginIT submit click

In latest Nextcloud version the "submit" button does not have an ID, but we can use the type for selection

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Álvaro Brey Vilas 3 gadi atpakaļ
vecāks
revīzija
85b5bf6875

+ 1 - 1
app/src/androidTest/java/com/owncloud/android/ui/LoginIT.java

@@ -113,7 +113,7 @@ public class LoginIT extends AbstractIT {
 
         // click login
         onWebView()
-            .withElement(findElement(Locator.XPATH, "//input[@id='submit-form']"))
+            .withElement(findElement(Locator.XPATH, "//input[@type='submit']"))
             .perform(webClick());
 
         Thread.sleep(2000);