Skip to content

Commit 8235c32

Browse files
committed
refactor(WhenAnonymousUserAtIndexPage): port linkForAddingSeriesShouldBeAbsent() to Robot Framework.
Addressed to #530 No functional changes.
1 parent 69671ff commit 8235c32

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserAtIndexPage.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ public void shouldExistsWelcomeText() {
4242
assertThat(page.textPresent(tr("t_you_may"))).isTrue();
4343
}
4444

45-
@Test(groups = "misc")
46-
public void linkForAddingSeriesShouldBeAbsent() {
47-
assertThat(page.linkWithLabelExists(tr("t_add_series")))
48-
.overridingErrorMessage("should absent link to page for adding series of stamps")
49-
.isFalse();
50-
}
51-
5245
@Test(groups = "misc")
5346
public void linkForAddingCategoriesShouldBeAbsent() {
5447
assertThat(page.linkWithLabelExists(tr("t_create_category")))

src/test/robotframework/site/misc-anonymous.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Anonymous should see a link for listing countries
1414
[Tags] country
1515
Page Should Contain Link link=show list of countries
1616

17+
Anonymous should not see a link for adding series
18+
[Tags] series
19+
Page Should Not Contain Link link=add a stamp series
20+
1721
*** Keywords ***
1822
Before Test Suite
1923
Open Browser ${SITE_URL} ${BROWSER}

0 commit comments

Comments
 (0)