Skip to content

Commit

Permalink
Modernize Load WP feature
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Aug 11, 2023
1 parent 71b1d14 commit ee59529
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/behat/load-wp.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,10 @@ Feature: Load WordPress
Given I am on the homepage
Then I should see "Hello World"

Scenario: Verify that a user can publish a blog post
Given I log in as an admin

When I go to "/wp-admin/post-new.php"
And I fill in "post_title" with "Awesome Post"
And I press "publish"
Then I should see "Post published."

Scenario: Verify that a user can update the site's title
When I go to the homepage
Then print current URL
And the "#masthead" element should not contain "Pantheon WordPress Site"
And the ".wp-block-site-title" element should not contain "Pantheon WordPress Site"

Given I log in as an admin

Expand All @@ -27,4 +19,4 @@ Feature: Load WordPress
And I should see "Settings saved."

When I go to the homepage
Then the "#masthead" element should contain "Pantheon WordPress Site"
Then the ".wp-block-site-title" element should contain "Pantheon WordPress Site"

0 comments on commit ee59529

Please sign in to comment.