diff --git a/cypress/e2e/assetEmpty/imageAssetEmpty.cy.ts b/cypress/e2e/assetEmpty/imageAssetEmpty.cy.ts index 295a9b68..c249293d 100644 --- a/cypress/e2e/assetEmpty/imageAssetEmpty.cy.ts +++ b/cypress/e2e/assetEmpty/imageAssetEmpty.cy.ts @@ -31,7 +31,8 @@ describe(`Test image empty asset, Env: ${CY.cfg}`, cy.waitSec(1) cy.get('.sidebar-info__content').invoke('text').then((sidebarText) => { cy.wrap(sidebarText).should('include', 'Náhľady') - cy.wrap(sidebarText).should('include', 'Náhľad obrázku na mobile, počítači alebo v aplikácii') + cy.wrap(sidebarText).should('include', 'Náhľady sú určené pre hlavný obrázok v článku, ' + + 'zoznamy článkov, titulky a rubriky. V tele článku sa zobrazuje formát bez orezania.') }) cy.get('.w-100 .v-btn').should('be.visible') diff --git a/cypress/e2e/assets/assetExifAutofill.cy.ts b/cypress/e2e/assets/assetExifAutofill.cy.ts index e11a9ad7..054d0601 100644 --- a/cypress/e2e/assets/assetExifAutofill.cy.ts +++ b/cypress/e2e/assets/assetExifAutofill.cy.ts @@ -43,7 +43,7 @@ describe(`Test add audio asset to podcast episode function, Env: ${CY.cfg}`, .should('have.value', EXPECTED_DESCRIPTION) cy.getCy('custom-field-keywords').click() cy.get('.v-overlay__content > .v-list > .v-list-item') - .invoke('text').should('eq', 'Žiadne dostupné dáta') + .invoke('text').should('eq', 'Zadajte minimálne 2 znaky') cy.get('body').type('{esc}') cy.getCy('custom-field-authors').click() }) diff --git a/cypress/e2e/assets/audioAsset.cy.ts b/cypress/e2e/assets/audioAsset.cy.ts index 11c5e267..53a1eac1 100644 --- a/cypress/e2e/assets/audioAsset.cy.ts +++ b/cypress/e2e/assets/audioAsset.cy.ts @@ -15,10 +15,8 @@ describe(`Test asset audio function, Env: ${CY.cfg}`, .first().clear({ force: true }).type(`${ASSET_TITLE}`) cy.get('[data-cy="custom-field-description"] textarea') .first().clear({ force: true }).type(`${ASSET_DESCRIPTION}`) - cy.getCy('add-keyword').click() - cy.getCy('keyword-name').type(`Keyword${RAND_NUM}`) - cy.getCy('button-confirm').click() cy.get('[data-cy="custom-field-keywords"] input').type(`Keyword${RAND_NUM}`) + cy.get('.v-btn').contains(`Keyword${RAND_NUM}`).click() cy.get('body').click() cy.getCy('add-author').click() cy.getCy('author-name').type(`Author${RAND_NUM}`) diff --git a/cypress/e2e/assets/imageAsset.cy.ts b/cypress/e2e/assets/imageAsset.cy.ts index c9fc00ef..e921350e 100644 --- a/cypress/e2e/assets/imageAsset.cy.ts +++ b/cypress/e2e/assets/imageAsset.cy.ts @@ -18,10 +18,8 @@ describe(`Test asset image function, Env: ${CY.cfg}`, .first().clear({ force: true }).type(`${ASSET_TITLE}`) cy.get('[data-cy="custom-field-description"] textarea') .first().clear({ force: true }).type(`${ASSET_DESCRIPTION}`) - cy.getCy('add-keyword').click() - cy.getCy('keyword-name').type(`Keyword${RAND_NUM}`) - cy.getCy('button-confirm').click() cy.get('[data-cy="custom-field-keywords"] input').type(`Keyword${RAND_NUM}`) + cy.get('.v-btn').contains(`Keyword${RAND_NUM}`).click() cy.get('body').click() cy.getCy('add-author').click() cy.getCy('author-name').type(`Author${RAND_NUM}`) diff --git a/cypress/e2e/assets/videoAsset.cy.ts b/cypress/e2e/assets/videoAsset.cy.ts index 85e409c2..0aa0e158 100644 --- a/cypress/e2e/assets/videoAsset.cy.ts +++ b/cypress/e2e/assets/videoAsset.cy.ts @@ -15,10 +15,8 @@ describe(`Test asset video function, Env: ${CY.cfg}`, .first().clear({ force: true }).type(`${ASSET_TITLE}`) cy.get('[data-cy="custom-field-description"] textarea') .first().clear({ force: true }).type(`${ASSET_DESCRIPTION}`) - cy.getCy('add-keyword').click() - cy.getCy('keyword-name').type(`Keyword${RAND_NUM}`) - cy.getCy('button-confirm').click() cy.get('[data-cy="custom-field-keywords"] input').type(`Keyword${RAND_NUM}`) + cy.get('.v-btn').contains(`Keyword${RAND_NUM}`).click() cy.get('body').click() cy.getCy('add-author').click() cy.getCy('author-name').type(`Author${RAND_NUM}`) diff --git a/cypress/utils/common.ts b/cypress/utils/common.ts index fc8bfc55..b1b415a8 100644 --- a/cypress/utils/common.ts +++ b/cypress/utils/common.ts @@ -9,7 +9,7 @@ export const USER_EMAIL = `test.mail+${RAND_NUM}@adam.com` export const USER_FIRST_NAME = `First${RAND_NUM}` export const USER_LAST_NAME = `Last${RAND_NUM}` export const USER_PASSWORD = `pwd${RAND_NUM}` -export const USER_LICENCE = ['CMS licence'] +export const USER_LICENCE = ['Novyny', 'Sme Family'] export const EXTERNAL_SYS = ['cms', 'blog', 'tools'] export const KEYWORDS = ['TestKeyword1', 'TestKeyword2'] export const AUTHORS = ['TestAuthor1', 'TestAuthor2', 'TestAuthor3']