Skip to content

Commit

Permalink
Check save button disable (#8394) (#8396)
Browse files Browse the repository at this point in the history
Co-authored-by: Amrita <[email protected]>
  • Loading branch information
saw-jan and amrita-shrestha authored Feb 8, 2023
1 parent 2f43ac2 commit ba1e414
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/acceptance/pageObjects/textEditorPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ module.exports = {
return this.elements.previewPanel.selector
},
saveFileEdit: function () {
return this.waitForElementVisible('@saveButton').click('@saveButton')
return this.waitForElementVisible('@saveButton')
.click('@saveButton')
.waitForElementVisible('@saveButtonDisabled')
},
closeTextEditor: function () {
return this.waitForElementVisible('@closeButton').click('@closeButton')
Expand Down Expand Up @@ -99,6 +101,9 @@ module.exports = {
},
previewPanel: {
selector: '#text-editor-preview'
},
saveButtonDisabled: {
selector: '#text-editor-controls-save:disabled'
}
}
}

0 comments on commit ba1e414

Please sign in to comment.