Add more tests
This commit is contained in:
parent
b5a0281729
commit
8631e1c66d
11
features/blog.feature
Normal file
11
features/blog.feature
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
Feature: Blog
|
||||||
|
|
||||||
|
Scenario:
|
||||||
|
Given I am on "/blog"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the ".nav li.active a" element should contain "Blog"
|
||||||
|
|
||||||
|
Scenario:
|
||||||
|
Given I am on "/blog/simplifying-drupal-migrations-with-xautoload"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the ".nav li.active a" element should contain "Blog"
|
6
features/contact.feature
Normal file
6
features/contact.feature
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Feature: Contact page
|
||||||
|
|
||||||
|
Scenario:
|
||||||
|
Given I am on "/contact"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the ".nav li.active a" element should contain "Contact"
|
6
features/experience.feature
Normal file
6
features/experience.feature
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Feature: Experience page
|
||||||
|
|
||||||
|
Scenario:
|
||||||
|
Given I am on "/experience"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the ".nav li.active a" element should contain "Experience"
|
12
features/home.feature
Normal file
12
features/home.feature
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Feature: Home
|
||||||
|
In order to check that the website still works
|
||||||
|
As a website user
|
||||||
|
I need to be able to see that the homepage is correct
|
||||||
|
|
||||||
|
Scenario:
|
||||||
|
Given I am on "/"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the ".nav li.active a" element should contain "About"
|
||||||
|
And I should see "I’m a Web Developer and System Administrator based in Wales, UK."
|
||||||
|
And the "title" element should contain "Web Developer, System Administrator - PHP, Drupal, Symfony, Linux | Oliver Davies"
|
||||||
|
And the "title" element should not contain "About | Oliver Davies"
|
|
@ -1,11 +0,0 @@
|
||||||
Feature: Homepage
|
|
||||||
In order to check that the website still works
|
|
||||||
As a website user
|
|
||||||
I need to be able to see that the homepage is correct
|
|
||||||
|
|
||||||
Scenario:
|
|
||||||
Given I am on "/"
|
|
||||||
Then the response status code should be 200
|
|
||||||
And I should see "I’m a Web Developer and System Administrator based in Wales, UK."
|
|
||||||
And the "title" element should contain "Web Developer, System Administrator - PHP, Drupal, Symfony, Linux | Oliver Davies"
|
|
||||||
And the "title" element should not contain "About | Oliver Davies"
|
|
6
features/talks.feature
Normal file
6
features/talks.feature
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Feature: Talks page
|
||||||
|
|
||||||
|
Scenario:
|
||||||
|
Given I am on "/talks"
|
||||||
|
Then the response status code should be 200
|
||||||
|
And the ".nav li.active a" element should contain "Talks"
|
Reference in a new issue