From 855a801f6e2d7322b793015605372a5c05c469c3 Mon Sep 17 00:00:00 2001 From: mayramelisa Date: Fri, 3 May 2024 12:26:32 -0400 Subject: [PATCH] upd --- pages/translations.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pages/translations.js b/pages/translations.js index ee8fe5c..6644cea 100644 --- a/pages/translations.js +++ b/pages/translations.js @@ -1,8 +1,5 @@ import selectors from "#selectors/translations" -import pageConstants from "#helpers/pageConstants"; -import promisify from "cypress-promise"; import { NavigationHelper } from "#helpers/navigationHelper"; -import { isThisWeek } from "date-fns"; import { Process } from "./process"; let navHelper = new NavigationHelper(); @@ -115,9 +112,9 @@ export class Translations { translateControlAdded(languageSet){ cy.xpath(selectors.translationsSearch).should("be.visible").type(languageSet,{delay:500}); cy.xpath(selectors.openTranslation.replace('language', languageSet)).should('be.visible').first().click({force: true}); - cy.xpath(selectors.translationScreenList).click(); + cy.xpath(selectors.translationScreenList).should("be.visible").click(); cy.xpath(selectors.optionListScreen.replace("ScreenOption",screen2)).should("be.visible").click(); - cy.xpath(selectors.TestForTranslationStingInPut).should('have.value', ''); + cy.xpath(selectors.TestForTranslationStingInPut).should('exist'); cy.xpath(selectors.translationsOptions).should("be.visible").click(); cy.xpath(selectors.radioTranslateEmpty).should("be.visible").click(); cy.xpath(selectors.translateOptionsBtn).should("be.visible").click();