-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic 403, 404 and 200 codes behat tests
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: | ||
As a Maintainer | ||
I want to check that main pages are accesible | ||
|
||
@behat | ||
Scenario: Homepage is working | ||
Given I go to "/" | ||
Then the response status code should be 200 | ||
|
||
@behat | ||
Scenario: Robots.txt is working | ||
Given I go to "/robots.txt" | ||
Then the response status code should be 200 | ||
|
||
# @behat | ||
# Scenario: Sitemap is working | ||
# Given I go to "/sitemap.xml" | ||
# Then the response status code should be 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: | ||
As a Maintainer | ||
I want to check that blocked pages are not accesible | ||
|
||
@behat | ||
Scenario: Admin area is not accesible | ||
Given I go to "/admin" | ||
Then the response status code should be 403 | ||
|
||
@behat | ||
Scenario: User root profile page is not acccesible | ||
Given I go to "/user/1" | ||
Then the response status code should be 403 | ||
|
||
@behat | ||
Scenario: User register page is not acccesible | ||
Given I go to "/user/register" | ||
Then the response status code should be 403 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Feature: | ||
As a Maintainer | ||
I want to check that some urls return not found code | ||
|
||
@behat | ||
Scenario: Homepage works | ||
Given I go to "/url-not-working" | ||
Then the response status code should be 404 |