From 1e50e0dde8574158154766459a6418b95e99bfba Mon Sep 17 00:00:00 2001 From: PaolaPellegrini <51709910+PaolaPellegrini@users.noreply.github.com> Date: Fri, 3 May 2024 16:52:21 -0400 Subject: [PATCH] add selectors for screen template --- pages/screenTemplate.js | 6 +++--- selectors/screenTemplate.js | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/screenTemplate.js b/pages/screenTemplate.js index 4d68792..7483d44 100644 --- a/pages/screenTemplate.js +++ b/pages/screenTemplate.js @@ -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) { @@ -90,7 +90,7 @@ export class ScreenTemplate { .type("{enter}"); } - clickOnSave() { + clickOnSaveTemplate() { cy.xpath(selectors.saveCreateScreenTemplate).should("be.visible").click(); } @@ -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}); } diff --git a/selectors/screenTemplate.js b/selectors/screenTemplate.js index 30029f6..66c2c45 100644 --- a/selectors/screenTemplate.js +++ b/selectors/screenTemplate.js @@ -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"]', } \ No newline at end of file