mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Update behat tests for new button styling
This commit is contained in:
parent
947c1fe156
commit
ebe09393db
@ -20,5 +20,6 @@ Feature: Duplicate a page
|
||||
|
||||
When I fill in "Title" with "Duplicate Page"
|
||||
And I press the "Save & publish" button
|
||||
And I wait for 1 second
|
||||
Then I should see "Page1" in the tree
|
||||
And I should see "Duplicate Page" in the tree
|
||||
|
@ -22,7 +22,7 @@ Feature: Edit a page
|
||||
When I fill in "Title" with "About Us!"
|
||||
And I fill in the "Content" HTML field with "<p>my new content</p>"
|
||||
And I press the "Save draft" button
|
||||
Then I should see "Saved" in the "button#Form_EditForm_action_save" element
|
||||
Then I should see the "Saved" button
|
||||
|
||||
When I click on "About Us" in the tree
|
||||
Then the "Title" field should contain "About Us!"
|
||||
|
@ -65,7 +65,7 @@ Feature: Insert an image into a page
|
||||
Given I press the "Insert Media" HTML field button
|
||||
And I fill in the "ParentID" dropdown with "folder1"
|
||||
And I click on "file1" in the "Files" table
|
||||
And I press the "Edit" button
|
||||
And I press the "Edit this file" button
|
||||
When I fill in "Alternative text (alt)" with "My alt"
|
||||
And I press the "Insert" button
|
||||
Then the "Content" HTML field should contain "file1__Resampled.jpg"
|
||||
|
@ -18,7 +18,7 @@ Feature: Publish a page
|
||||
And I go to "/admin/pages"
|
||||
And I should see "My Page" in the tree
|
||||
And I click on "My Page" in the tree
|
||||
And I press the "Publish" button
|
||||
And I press the "Save & publish" button
|
||||
|
||||
Then I press the "Log out" button
|
||||
And I go to "/my-page"
|
||||
@ -33,22 +33,22 @@ Feature: Publish a page
|
||||
And I click on "My Page" in the tree
|
||||
|
||||
When I click "More options" in the "#ActionMenus" element
|
||||
Then I should not see "Unpublish" in the "#ActionMenus_MoreOptions" element
|
||||
And I should see "Not published" in the "#ActionMenus_MoreOptions" element
|
||||
And I should see "Archive" in the "#ActionMenus_MoreOptions" element
|
||||
Then I should see "Not published" in the "#ActionMenus_MoreOptions" element
|
||||
And I should not see an "Unpublish" button
|
||||
And I should see an "Archive" button
|
||||
And I should see a "Save & publish" button
|
||||
And I should see a "Saved" button
|
||||
|
||||
When I fill in the "Content" HTML field with "<p>my new content</p>"
|
||||
And I click "More options" in the "#ActionMenus" element
|
||||
Then I should not see "Unpublish" in the "#ActionMenus_MoreOptions" element
|
||||
Then I should not see an "Unpublish" button
|
||||
And I should see a "Save & publish" button
|
||||
And I should see a "Save draft" button
|
||||
|
||||
When I press the "Publish" button
|
||||
When I press the "Save & publish" button
|
||||
And I click "More options" in the "#ActionMenus" element
|
||||
Then I should see "Unpublish" in the "#ActionMenus_MoreOptions" element
|
||||
And I should see "Archive" in the "#ActionMenus_MoreOptions" element
|
||||
Then I should see an "Unpublish" button
|
||||
And I should see an "Unpublish and archive" button
|
||||
And I should see a "Published" button
|
||||
And I should see a "Saved" button
|
||||
|
||||
@ -76,13 +76,13 @@ Feature: Publish a page
|
||||
And I go to "/admin/pages"
|
||||
And I should see "My Page" in the tree
|
||||
And I click on "My Page" in the tree
|
||||
And I press the "Publish" button
|
||||
And I press the "Save & publish" button
|
||||
And I click "More options" in the "#ActionMenus" element
|
||||
Then I should see "Unpublish" in the "#ActionMenus_MoreOptions" element
|
||||
Then I should see an "Unpublish" button
|
||||
|
||||
When I press the "Unpublish" button, confirming the dialog
|
||||
And I click "More options" in the "#ActionMenus" element
|
||||
Then I should see "Archive" in the "#ActionMenus_MoreOptions" element
|
||||
Then I should see an "Archive" button
|
||||
|
||||
When I press the "Archive" button, confirming the dialog
|
||||
Then I should see a "Restore" button
|
||||
|
Loading…
Reference in New Issue
Block a user