Skip to content

Commit e145ae4

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

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 linkForAddingCategoriesShouldBeAbsent() {
47-
assertThat(page.linkWithLabelExists(tr("t_create_category")))
48-
.overridingErrorMessage("should absent link to page for adding categories")
49-
.isFalse();
50-
}
51-
5245
@Test(groups = "misc")
5346
public void linkForAddingCountriesShouldBeAbsent() {
5447
assertThat(page.linkWithLabelExists(tr("t_add_country")))

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Anonymous should see a link for listing categories
1010
[Tags] category
1111
Page Should Contain Link link=show list of categories
1212

13+
Anonymous should not see a link for adding categories
14+
[Tags] category
15+
Page Should Not Contain Link link=add a category
16+
1317
Anonymous should see a link for listing countries
1418
[Tags] country
1519
Page Should Contain Link link=show list of countries

0 commit comments

Comments
 (0)