Skip to content

Commit 878d0e3

Browse files
committed
refactor(WhenAnonymousUserAtIndexPage): port shouldExistsLinkForListingCategories() to Robot Framework.
Addressed to #530 No functional changes.
1 parent f517118 commit 878d0e3

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-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 shouldExistsLinkForListingCategories() {
47-
assertThat(page.linkWithLabelExists(tr("t_show_categories_list")))
48-
.overridingErrorMessage("should exists link to page for listing categories")
49-
.isTrue();
50-
}
51-
5245
@Test(groups = "misc")
5346
public void shouldExistsLinkForListingCountries() {
5447
assertThat(page.linkWithLabelExists(tr("t_show_countries_list")))
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*** Settings ***
2+
Documentation Verify required elements appearance on the main page from anonymous user
3+
Library SeleniumLibrary
4+
Suite Setup Before Test Suite
5+
Suite Teardown After Test Suite
6+
Force Tags misc main-page
7+
8+
*** Test Cases ***
9+
Anonymous should see a link for listing categories
10+
[Tags] category
11+
Page Should Contain Link link=show list of categories
12+
13+
*** Keywords ***
14+
Before Test Suite
15+
Open Browser ${SITE_URL} ${BROWSER}
16+
Register Keyword To Run On Failure Log Source
17+
Go To ${SITE_URL}/
18+
19+
After Test Suite
20+
Close Browser

0 commit comments

Comments
 (0)