Skip to content
Permalink
Browse files

Merge pull request #529 from phpList/test-links-in-public-pages

Test links in public pages
  • Loading branch information...
samtuke committed May 14, 2019
2 parents 6333314 + 661a21a commit b53f545a64d829834912303491c5e0c089a7692f
Showing with 28 additions and 0 deletions.
  1. +8 −0 tests/features/bootstrap/FeatureContext.php
  2. +20 −0 tests/features/getting-started/publicPages.feature
@@ -355,4 +355,12 @@ public function iWaitForTheAjaxResponse()
{
$this->getSession()->wait(5000, '(0 === jQuery.active)');
}
/**
* @Given I go back
*/
public function iGoBack()
{
$this->getSession()->getDriver()->back();
}
}
@@ -0,0 +1,20 @@
Feature: Use public pages as a subscriber
In order to interact with a phplist installation
As a subscriber
I need to be able to view and use public pages

Scenario: Use public pages links
Given I am on "/lists"
Then I should see "Subscribe to our Newsletter"
And I should see "Update your preferences"
And I should see "Unsubscribe from our Newsletters"
And I should see "Contact the administrator"
Given I follow "Subscribe to our Newsletter"
Then I should see "Email address *"
Given I go back
And I follow "Update your preferences"
Then I should see "This page requires a personal identification that can be found on each message that you receive."
Given I go back
And I follow "Unsubscribe from our Newsletters"
Then I should see "Please enter a valid email address:"

0 comments on commit b53f545

Please sign in to comment.
You can’t perform that action at this time.