diff options
Diffstat (limited to 'it/it-tests/src/test/java/pageobjects')
-rw-r--r-- | it/it-tests/src/test/java/pageobjects/MyActivityPage.java | 48 | ||||
-rw-r--r-- | it/it-tests/src/test/java/pageobjects/Navigation.java | 4 |
2 files changed, 52 insertions, 0 deletions
diff --git a/it/it-tests/src/test/java/pageobjects/MyActivityPage.java b/it/it-tests/src/test/java/pageobjects/MyActivityPage.java new file mode 100644 index 00000000000..8bcb376a85b --- /dev/null +++ b/it/it-tests/src/test/java/pageobjects/MyActivityPage.java @@ -0,0 +1,48 @@ +/* + * SonarQube + * Copyright (C) 2009-2016 SonarSource SA + * mailto:contact 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 pageobjects; + +import com.codeborne.selenide.SelenideElement; + +import static com.codeborne.selenide.Condition.visible; +import static com.codeborne.selenide.Selenide.$; + +public class MyActivityPage { + + public MyActivityPage() { + $("#my-activity-page").shouldBe(visible); + } + + public SelenideElement getRecentIssues() { + return $("#recent-issues"); + } + + public SelenideElement getAllIssues() { + return $("#all-issues"); + } + + public SelenideElement getFavoriteProjects() { + return $("#favorite-projects"); + } + + public void assertNoFavoriteProjects() { + $("#no-favorite-projects").shouldBe(visible); + } +} diff --git a/it/it-tests/src/test/java/pageobjects/Navigation.java b/it/it-tests/src/test/java/pageobjects/Navigation.java index 071df520c6e..8342474a417 100644 --- a/it/it-tests/src/test/java/pageobjects/Navigation.java +++ b/it/it-tests/src/test/java/pageobjects/Navigation.java @@ -108,6 +108,10 @@ public class Navigation extends ExternalResource { return open("/settings/server_id", ServerIdPage.class); } + public MyActivityPage openMyActivity() { + return open("/account", MyActivityPage.class); + } + public void open(String relativeUrl) { Selenide.open(relativeUrl); } |