diff --git a/cypress/commands/api.ts b/cypress/commands/api.ts index dd245c04..478ff040 100644 --- a/cypress/commands/api.ts +++ b/cypress/commands/api.ts @@ -10,13 +10,9 @@ declare global { api_getFileID(timeout?: number): Chainable api_getFileType(id: string): Chainable api_deleteFile(id: string): Chainable - testApi(): Chainable } } } -Cypress.Commands.add('testApi', () => { - cy.log('testApi') -}) const CORE_DAM_ASSET = (id?: string) => `${CY.url.proto}://core-dam.${CY.url.domain}/api/adm/v1/asset/${id}` Cypress.Commands.add('api_getFileID', (timeout?: number) => { diff --git a/cypress/commands/common.ts b/cypress/commands/common.ts index 10d67cba..6e09f657 100644 --- a/cypress/commands/common.ts +++ b/cypress/commands/common.ts @@ -49,14 +49,6 @@ declare global { * @param value - [true/false] if true visit base url */ visitBaseUrl(value: boolean, timeout?: number): Chainable - - /** - * Navigate tu subpage in setting menu and check if url and title are correct - * @param selector - data-cy value as string - * @param url - url of subpage - * @param title - title of subpage - */ - verifySubPage(selector: string, url: string, title: string): Chainable /** * Decide if cypress fails on uncaught exception in console. * @param option - true or false @@ -105,13 +97,6 @@ Cypress.Commands.add('visitBaseUrl', (value?: boolean, timeout?: number) => { } }) -Cypress.Commands.add('verifySubPage', (selector: string, url: string, title: string) => { - if (url.includes('/settings') === false) cy.visit('/settings') - cy.getCyVisibleClick(selector) - cy.urlContains(url) - cy.contains('[data-cy="page-title"]', title) -}) - Cypress.Commands.add('failOnUncaughtException', (option) => { Cypress.on('uncaught:exception', (err) => { cy.log(`Uncaught exception: ${err}`)