Skip to content

Commit 1c880a4

Browse files
committed
WhenAnonymousUserOpenNotExistingCategoryPage: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent 3bb69ff commit 1c880a4

File tree

3 files changed

+7
-55
lines changed

3 files changed

+7
-55
lines changed

src/test/config/testng.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131
</classes>
3232
</test>
3333

34-
<test name="When anonymous user open not existing category page">
35-
<classes>
36-
<class name="ru.mystamps.web.tests.cases.WhenAnonymousUserOpenNotExistingCategoryPage" />
37-
</classes>
38-
</test>
39-
4034
<test name="When admin add country">
4135
<classes>
4236
<class name="ru.mystamps.web.tests.cases.WhenAdminAddCountry" />

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

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/test/robotframework/category/access.robot

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*** Settings ***
2-
Documentation Verify access to category related pages
2+
Documentation Verify access to category related pages (including non-existing)
33
Library Selenium2Library
44
Suite Setup Before Test Suite
55
Suite Teardown After Test Suite
@@ -12,6 +12,12 @@ Anonymous user cannot create category
1212
Element Text Should Be id=error-code 403
1313
Element Text Should Be id=error-msg Forbidden
1414

15+
Opening a page of non-existing category show an error
16+
[Documentation] Verify that access to non-existing category returns 404 error
17+
Go To ${SITE_URL}/category/category-404-error-test
18+
Element Text Should Be id=error-code 404
19+
Element Text Should Be id=error-msg Requested page${\n}not found
20+
1521
*** Keywords ***
1622
Before Test Suite
1723
[Documentation] Open browser and register fail hook

0 commit comments

Comments
 (0)