Skip to content

Commit

Permalink
Take screenshots during test
Browse files Browse the repository at this point in the history
  • Loading branch information
composer-lock-update committed Jul 5, 2019
1 parent 4e5fd8b commit 6ca4b7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/behat/features/blogname.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ Feature: Change blogname and blogdescription
Given I am on the dashboard
Then I should be logged in
When I go to the "Settings > General" menu
And I take a Chrome screenshot "settings-menu-before-blogname-changes.png"
And I fill in "blogname" with "Awesome WordHat Test Site!"
And I fill in "blogdescription" with "Composer + CI + Pantheon is a win!"
And I press "submit"
Then I should see "Settings saved."
And I take a Chrome screenshot "settings-menu-after-blogname-changes.png"

Scenario: Verifying blogname and blogdescription
Given I am on the homepage
And the Pantheon cache has been cleared
Then I should be on the homepage
And I should not be logged in
And I take a Chrome screenshot "homepage-after-blogname-changes.png"
And I should see "Awesome WordHat Test Site!" in the ".site-title > a" element
And I should see "Composer + CI + Pantheon is a win!" in the ".site-description" element

0 comments on commit 6ca4b7b

Please sign in to comment.