BikeBikeBike/features/contact_us.feature

41 lines
1.4 KiB
Gherkin
Raw Normal View History

2017-04-09 11:37:16 -07:00
Feature: Contact Us
Scenario: Contact the site administrator
Given there is an upcoming conference in 'Brooklyn NY'
And I am on the landing page
Then I should see a 'Contact Us' link
When I click the 'Contact Us' link
Then I should see 'What are you contacting us about?'
Then I should see 'Email address'
And I enter my email
And select 'Something about the website'
And enter a subject as 'My Contact Subject'
And enter a message as 'My contact message'
2017-04-13 19:56:27 -07:00
And press 'send'
2017-04-09 11:37:16 -07:00
2017-04-13 19:56:27 -07:00
Then I should be on the contact_sent page
And I should see 'Thank you for contacting us'
2017-04-09 11:37:16 -07:00
2017-04-13 19:56:27 -07:00
And the site administrator should get two 'My contact subject' emails
2017-04-09 11:37:16 -07:00
And the site administrator should get a 'Details for' email
Scenario: Contact the site administrator from the contact page
Given there is an upcoming conference in 'Brooklyn NY'
And I am logged in
And I am on the contact page
Then I should see 'What are you contacting us about?'
And I should not see 'Email address'
And select 'Something about the website'
And enter a subject as 'My Contact Subject'
And enter a message as 'My contact message'
2017-04-13 19:56:27 -07:00
And press 'send'
2017-04-09 11:37:16 -07:00
2017-04-13 19:56:27 -07:00
Then I should be on the contact_sent page
And I should see 'Thank you for contacting us'
2017-04-09 11:37:16 -07:00
2017-04-13 19:56:27 -07:00
And the site administrator should get two 'My contact subject' emails
2017-04-09 11:37:16 -07:00
And the site administrator should get a 'Details for' email