@@ -15,33 +15,33 @@ Feature: Unsaved changes are identified by changetracker
1515 # Note we can't just check for "Save" vs "Saved" because one is a subset of the other,
1616 # so `I should not see a "Save" button` will always fail when the "Saved" button is present.
1717 # Instead, font-icon-tick is a CSS class on the "Saved" button, and font-icon-save is on the "Save" button
18- Then I should see the "button.font-icon-tick" element
19- Then I should not see the "button.font-icon-save" element
18+ Then I should see the "button .font-icon-tick" element
19+ Then I should not see the "button .font-icon-save" element
2020 # Just opening the block doesn't get seen as a "change"
2121 When I click on the caret button for block 1
22- Then I should see the "button.font-icon-tick" element
23- Then I should not see the "button.font-icon-save" element
22+ Then I should see the "button .font-icon-tick" element
23+ Then I should not see the "button .font-icon-save" element
2424 # Update the title
2525 # For some reason, using the usual 'When I fill in "changed" for "Title" for block 1'
2626 # it fails to recognise the change in CI even though it works locally for some people.
2727 When I focus on the "#Form_ElementForm_1_Title" element
2828 And I type "changed" in the field
2929 # When I fill in "changed" for "Title" for block 1
30- Then I should not see the "button.font-icon-tick" element
31- Then I should see the "button.font-icon-save" element
30+ Then I should not see the "button .font-icon-tick" element
31+ Then I should see the "button .font-icon-save" element
3232 # Change it back
3333 When I fill in "" for "Title" for block 1
3434 When I focus on the "#Form_ElementForm_1_Title" element
3535 And I type "My title" in the field
36- Then I should see the "button.font-icon-tick" element
37- Then I should not see the "button.font-icon-save" element
36+ Then I should see the "button .font-icon-tick" element
37+ Then I should not see the "button .font-icon-save" element
3838 # Update the HTML content
3939 When I fill in "<p>New sample content</p>" for "Content" for block 1
40- Then I should not see the "button.font-icon-tick" element
41- Then I should see the "button.font-icon-save" element
40+ Then I should not see the "button .font-icon-tick" element
41+ Then I should see the "button .font-icon-save" element
4242 # Change it back
4343 When I fill in "<p>My content</p>" for "Content" for block 1
44- Then I should see the "button.font-icon-tick" element
45- Then I should not see the "button.font-icon-save" element
44+ Then I should see the "button .font-icon-tick" element
45+ Then I should not see the "button .font-icon-save" element
4646 # Don't click save at the end - there should be no alert because there were no changes
4747
0 commit comments