Skip to content

Commit

Permalink
add selectors for screen template
Browse files Browse the repository at this point in the history
  • Loading branch information
PaolaPellegrini committed May 3, 2024
1 parent 7de9957 commit 1e50e0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/screenTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ScreenTemplate {
this.enterScreenTemplateDescription(description, { delay: 200 });
if (category != "") this.enterScreenTemplateCategory(category);
if (version != "") this.enterVersionScreenTemplate(version, { delay: 200 });
this.clickOnSave();
this.clickOnSaveTemplate();
}

enterScreenTemplateName(nameScreenTemplate) {
Expand All @@ -90,7 +90,7 @@ export class ScreenTemplate {
.type("{enter}");
}

clickOnSave() {
clickOnSaveTemplate() {
cy.xpath(selectors.saveCreateScreenTemplate).should("be.visible").click();

}
Expand Down Expand Up @@ -460,7 +460,7 @@ previewTemplate(nameTemplate) {


clickOnSave() {
cy.get(Selectors.saveBtn).should('be.visible').should('be.visible').click({force:true});
cy.get(selectors.saveBtn).should('be.visible').click({force:true});
}


Expand Down
2 changes: 2 additions & 0 deletions selectors/screenTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ export default {
selectScreenTemplate:'[data-cy="CustomCard"] input',
previewTemplate: '[data-cy="CustomCard"] a',
buttonViewCSS:'[class="btn text-uppercase btn-outline-secondary"]',
saveBtn: '[data-cy="create_screen_save_btn"]',
customCSSpanel: 'div[class="css-preview"]',

}

0 comments on commit 1e50e0d

Please sign in to comment.