diff --git a/aljibe-kickstart/tests/behat/local/features/200.feature b/aljibe-kickstart/tests/behat/local/features/200.feature new file mode 100644 index 0000000..8647707 --- /dev/null +++ b/aljibe-kickstart/tests/behat/local/features/200.feature @@ -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 \ No newline at end of file diff --git a/aljibe-kickstart/tests/behat/local/features/403.feature b/aljibe-kickstart/tests/behat/local/features/403.feature new file mode 100644 index 0000000..59bd23a --- /dev/null +++ b/aljibe-kickstart/tests/behat/local/features/403.feature @@ -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 diff --git a/aljibe-kickstart/tests/behat/local/features/404.feature b/aljibe-kickstart/tests/behat/local/features/404.feature new file mode 100644 index 0000000..5e529a7 --- /dev/null +++ b/aljibe-kickstart/tests/behat/local/features/404.feature @@ -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 \ No newline at end of file