Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Update expected toasts in behat #1291

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/Behat/features/broken-element.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ Feature: Broken element in CMS
Scenario: I can publish the page
Given I see a list of blocks
When I press the "Publish" button
Then I should see a "Published 'Blocks Page' successfully." success toast
Then I should see a "Published Page "Blocks Page"" success toast
# This message displays if the ObsoleteClass check is not present in BaseElement::write()
And I should not see "you need to change the ClassName before you can write it"
2 changes: 1 addition & 1 deletion tests/Behat/features/edit-block-element.feature
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Feature: Edit elements in the CMS
When I press the "Save" button
Then I should see a "Saved 'Alice's Much Improved Block' successfully" success toast
And I should see a "Saved 'Bob's Radically Redesigned Revolutionary Element' successfully" success toast
And I should see a "Saved 'Blocks Page' successfully." success toast
And I should see a "Saved Page "Blocks Page"" success toast
When I dismiss all toasts
And I should see "Alice's Much Improved Block"
And I should see "New content for block 1"
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/features/multiple-wysiwyg-configs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Feature: multiple elemental blocks with different HTMLEditorConfig instances
When I click on block 2
# In CI, the mouse position just happens to produce a tooltip that stops us clicking on the insert link button
# so we have to move the mouse somewhere else to avoid that
And I click on the "input[type='text']" element
And I click on the ".element-editor-editform input[type='text']" element
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I click on the "#Form_ElementForm_2 button[aria-label^='Insert link']" element
Then I should see "Page on this site" in the ".tox-menu" element
And I should see "Link to a file" in the ".tox-menu" element
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/features/page-save-validation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ Feature: Blocks are validated when page saving blocks
# Now should see 2x success toast messages, one for the block, the other for the page
Then I should see a "Saved 'Valid block one' successfully" success toast
When I click on the ".toast__close" element
Then I should see a "Saved 'Blocks Page' successfully." success toast
Then I should see a "Saved Page "Blocks Page"" success toast
When I click on the ".toast__close" element
Then I should not see a ".toast__close" element
Loading