From 3d370f9d11fad345f7a1753a8be7459a979fb9d9 Mon Sep 17 00:00:00 2001 From: Vaclav Muzikar Date: Tue, 19 Apr 2016 13:03:27 +0200 Subject: [PATCH] KEYCLOAK-2854 Fix Client Settings Console UI test --- .../console/page/clients/settings/ClientSettingsForm.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java b/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java index 17c98df157..4b00a4e552 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java +++ b/testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/settings/ClientSettingsForm.java @@ -51,20 +51,20 @@ public class ClientSettingsForm extends CreateClientForm { @FindBy(id = "newRedirectUri") private WebElement newRedirectUriInput; - @FindBy(xpath = ".//i[contains(@data-ng-click, 'newRedirectUri') and @class='fa fa-plus']") + @FindBy(xpath = ".//button[contains(@data-ng-click,'addRedirectUri')]") private WebElement newRedirectUriSubmit; @FindBy(xpath = ".//input[@ng-model='client.redirectUris[i]']") private List redirectUriInputs; - @FindBy(xpath = ".//i[contains(@data-ng-click, 'deleteRedirectUri') and @class='fa fa-minus']") + @FindBy(xpath = ".//button[contains(@data-ng-click, 'deleteRedirectUri')]") private List deleteRedirectUriIcons; @FindBy(id = "newWebOrigin") private WebElement newWebOriginInput; - @FindBy(xpath = ".//i[contains(@data-ng-click, 'newWebOrigin')]") + @FindBy(xpath = ".//button[contains(@data-ng-click,'addWebOrigin')]") private WebElement newWebOriginSubmit; @FindBy(xpath = ".//input[ng-model='client.webOrigins[i]']") private List webOriginInputs; - @FindBy(xpath = ".//i[contains(@data-ng-click, 'deleteWebOrigin')]") + @FindBy(xpath = ".//button[contains(@data-ng-click, 'deleteWebOrigin')]") private List deleteWebOriginIcons; public enum OidcAccessType {