Skip to content

Commit

Permalink
update save scren function
Browse files Browse the repository at this point in the history
  • Loading branch information
PaolaPellegrini committed Dec 12, 2024
1 parent ba78882 commit 630eef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pages/screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export class Screens {
}

clickOnSave() {
cy.xpath(Selectors.saveBtn)
.should('be.visible')
.click();
cy.get(Selectors.saveBtn).should('be.visible').click();
}
clickOnPublishSave() {
cy.xpath(Selectors.savePublishBtn).should('be.visible').click();
Expand Down
2 changes: 1 addition & 1 deletion selectors/screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default{
screenTypeEmail: '[data-cy="type-container-E-mail"]',
screenTypeDisplay: '[data-cy="type-container-Display"]',
screenTypeConversational: '[data-cy="type-container-Conversational"]',
saveBtn: '//button[text()="Publish"]',
saveBtn: '[data-cy="create_screen_save_btn"]',
savePublishBtn: '//button[text()="Publish"]',
varaibleNameTxtBx: '[name="Variable Name"]',
//Data Source configuration
Expand Down

0 comments on commit 630eef1

Please sign in to comment.