diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-10-24 15:54:34 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-10-25 14:28:47 +0200 |
commit | f85439c48a10d7781b7c3a6d21e1840b334250c6 (patch) | |
tree | 8d74e3cf7632a7edc8145fb13665f169db280c85 | |
parent | 696d32e11576aa71b591874d9f4e01238e740272 (diff) | |
download | sonarqube-f85439c48a10d7781b7c3a6d21e1840b334250c6.tar.gz sonarqube-f85439c48a10d7781b7c3a6d21e1840b334250c6.zip |
SONAR-9863 Remove licenses and server id pageobjects in IT's
4 files changed, 0 insertions, 171 deletions
diff --git a/tests/src/test/java/org/sonarqube/pageobjects/Navigation.java b/tests/src/test/java/org/sonarqube/pageobjects/Navigation.java index 96bac547e32..4dccfb77721 100644 --- a/tests/src/test/java/org/sonarqube/pageobjects/Navigation.java +++ b/tests/src/test/java/org/sonarqube/pageobjects/Navigation.java @@ -34,7 +34,6 @@ import org.openqa.selenium.html5.WebStorage; import org.sonarqube.pageobjects.measures.MeasuresPage; import org.sonarqube.tests.Tester; import org.sonarqube.pageobjects.issues.IssuesPage; -import org.sonarqube.pageobjects.licenses.LicensesPage; import org.sonarqube.pageobjects.organization.MembersPage; import org.sonarqube.pageobjects.projects.ProjectsPage; import org.sonarqube.pageobjects.settings.SettingsPage; @@ -162,18 +161,10 @@ public class Navigation { return open(url, SettingsPage.class); } - public LicensesPage openLicenses() { - return open("/settings/licenses", LicensesPage.class); - } - public EncryptionPage openEncryption() { return open("/settings/encryption", EncryptionPage.class); } - public ServerIdPage openServerId() { - return open("/settings/server_id", ServerIdPage.class); - } - public SystemInfoPage openSystemInfo() { return open("/admin/system", SystemInfoPage.class); } diff --git a/tests/src/test/java/org/sonarqube/pageobjects/ServerIdPage.java b/tests/src/test/java/org/sonarqube/pageobjects/ServerIdPage.java deleted file mode 100644 index e65171c8425..00000000000 --- a/tests/src/test/java/org/sonarqube/pageobjects/ServerIdPage.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2017 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonarqube.pageobjects; - -import com.codeborne.selenide.SelenideElement; - -import static com.codeborne.selenide.Condition.visible; -import static com.codeborne.selenide.Selenide.$; - -public class ServerIdPage { - - public ServerIdPage() { - $("#server-id-page").shouldBe(visible); - } - - public SelenideElement serverIdInput() { - return $("#server-id-result").shouldBe(visible); - } - - private SelenideElement organizationInput() { - return $("#server-id-organization").shouldBe(visible); - } - - private SelenideElement ipAddressInput() { - return $("#server-id-ip").shouldBe(visible); - } - - public ServerIdPage assertError() { - $(".process-spinner-failed").shouldBe(visible); - return this; - } - - public ServerIdPage setOrganization(String organization) { - organizationInput().val(organization); - return this; - } - - public ServerIdPage setIpAddress(String ipAddress) { - ipAddressInput().val(ipAddress); - return this; - } - - public ServerIdPage submitForm() { - $("#server-id-form").submit(); - return this; - } -} diff --git a/tests/src/test/java/org/sonarqube/pageobjects/licenses/LicenseItem.java b/tests/src/test/java/org/sonarqube/pageobjects/licenses/LicenseItem.java deleted file mode 100644 index 61b7753cc26..00000000000 --- a/tests/src/test/java/org/sonarqube/pageobjects/licenses/LicenseItem.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2017 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonarqube.pageobjects.licenses; - -import com.codeborne.selenide.SelenideElement; - -import static com.codeborne.selenide.Condition.visible; -import static com.codeborne.selenide.Selenide.$; - -public class LicenseItem { - - private final SelenideElement elt; - - public LicenseItem(SelenideElement elt) { - this.elt = elt; - } - - public SelenideElement getName() { - return elt.find(".js-product"); - } - - public LicenseItem setLicense(String value) { - elt.find(".js-change").click(); - $("#license-input").shouldBe(visible).val(value); - $(".js-modal-submit").click(); - $("#license-input").shouldNotBe(visible); - return this; - } -} diff --git a/tests/src/test/java/org/sonarqube/pageobjects/licenses/LicensesPage.java b/tests/src/test/java/org/sonarqube/pageobjects/licenses/LicensesPage.java deleted file mode 100644 index 95e1f438f30..00000000000 --- a/tests/src/test/java/org/sonarqube/pageobjects/licenses/LicensesPage.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2017 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonarqube.pageobjects.licenses; - -import com.codeborne.selenide.ElementsCollection; -import com.codeborne.selenide.SelenideElement; -import java.util.List; -import java.util.stream.Collectors; - -import static com.codeborne.selenide.Condition.visible; -import static com.codeborne.selenide.Selenide.$; -import static com.codeborne.selenide.Selenide.$$; - -public class LicensesPage { - - public LicensesPage() { - $("#licenses-page").shouldBe(visible); - } - - public ElementsCollection getLicenses() { - return $$(".js-license"); - } - - public List<LicenseItem> getLicensesAsItems() { - return getLicenses() - .stream() - .map(LicenseItem::new) - .collect(Collectors.toList()); - } - - public LicenseItem getLicenseByKey(String key) { - SelenideElement element = $(".js-license[data-license-key=\"" + key + "\"]"); - return new LicenseItem(element); - } -} |