Remove Behat tests, not used
This commit is contained in:
parent
9e8306bbe3
commit
30ef010b9b
|
@ -1,5 +0,0 @@
|
||||||
default:
|
|
||||||
extensions:
|
|
||||||
Behat\MinkExtension:
|
|
||||||
base_url: http://127.0.0.1:8000
|
|
||||||
goutte: ~
|
|
2191
composer.lock
generated
2191
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,18 +0,0 @@
|
||||||
Feature: Blog
|
|
||||||
|
|
||||||
Scenario:
|
|
||||||
Given I am on "/blog"
|
|
||||||
Then the response status code should be 200
|
|
||||||
And the page title should be "Blog"
|
|
||||||
And the active menu link should be "Blog"
|
|
||||||
|
|
||||||
Scenario:
|
|
||||||
Given I am on "/blog/2016/05/03/simplifying-drupal-migrations-with-xautoload"
|
|
||||||
Then the response status code should be 200
|
|
||||||
And the page title should be "Simplifying Drupal Migrations with xautoload"
|
|
||||||
And the active menu link should be "Blog"
|
|
||||||
|
|
||||||
Scenario:
|
|
||||||
Given I am on "/"
|
|
||||||
Then I should see "Latest blog posts"
|
|
||||||
And I should see 3 ".latest-posts .post" elements
|
|
|
@ -1,49 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
use Behat\Behat\Tester\Exception\PendingException;
|
|
||||||
use Behat\Behat\Context\Context;
|
|
||||||
use Behat\Behat\Context\SnippetAcceptingContext;
|
|
||||||
use Behat\Gherkin\Node\PyStringNode;
|
|
||||||
use Behat\Gherkin\Node\TableNode;
|
|
||||||
use Behat\MinkExtension\Context\MinkContext;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines application features from the specific context.
|
|
||||||
*/
|
|
||||||
class FeatureContext extends MinkContext implements Context, SnippetAcceptingContext
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Initializes context.
|
|
||||||
*
|
|
||||||
* Every scenario gets its own context instance.
|
|
||||||
* You can also pass arbitrary arguments to the
|
|
||||||
* context constructor through behat.yml.
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Then the active menu link should be :text
|
|
||||||
*/
|
|
||||||
public function theActiveMenuLinkShouldBe($text)
|
|
||||||
{
|
|
||||||
return $this->assertElementContains('.navbar .active a', $text);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Then the page title should be :text
|
|
||||||
*/
|
|
||||||
public function thePageTitleShouldBe($text)
|
|
||||||
{
|
|
||||||
return $this->assertElementContainsText('title', $text);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Then the page title should not be :text
|
|
||||||
*/
|
|
||||||
public function thePageTitleShouldNotBe($text)
|
|
||||||
{
|
|
||||||
return $this->assertElementNotContainsText('title', $text);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
Feature: Experience page
|
|
||||||
|
|
||||||
Scenario:
|
|
||||||
Given I am on "/experience"
|
|
||||||
Then the response status code should be 200
|
|
||||||
And the page title should be "Experience"
|
|
||||||
And the active menu link should be "Experience"
|
|
|
@ -1,12 +0,0 @@
|
||||||
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 the homepage
|
|
||||||
Then the response status code should be 200
|
|
||||||
And I should see "a Web Developer and System Administrator based in Wales, UK."
|
|
||||||
And the active menu link should be "About"
|
|
||||||
And the page title should be "Web Developer, System Administrator - PHP, Drupal, Symfony, Linux | Oliver Davies"
|
|
||||||
And the page title should not be "About | Oliver Davies"
|
|
|
@ -1,11 +0,0 @@
|
||||||
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"
|
|
||||||
|
|
||||||
Scenario:
|
|
||||||
Given I am on "/talks/drupal-8-rejoining-the-herd"
|
|
||||||
Then the response status code should be 200
|
|
||||||
And the ".nav li.active a" element should contain "Talks"
|
|
|
@ -1,7 +0,0 @@
|
||||||
Feature: Testimonials page
|
|
||||||
|
|
||||||
Scenario:
|
|
||||||
Given I am on "/testimonials"
|
|
||||||
Then the response status code should be 200
|
|
||||||
And the page title should be "Testimonials"
|
|
||||||
And the active menu link should be "Testimonials"
|
|
Loading…
Reference in a new issue