Skip to content

Commit

Permalink
remove not used commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Mihalik committed Jun 27, 2023
1 parent aae488a commit 107b2f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
4 changes: 0 additions & 4 deletions cypress/commands/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ declare global {
api_getFileID(timeout?: number): Chainable<string>
api_getFileType(id: string): Chainable<string>
api_deleteFile(id: string): Chainable<any>
testApi(): Chainable<any>
}
}
}
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) => {
Expand Down
15 changes: 0 additions & 15 deletions cypress/commands/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ declare global {
* @param value - [true/false] if true visit base url
*/
visitBaseUrl(value: boolean, timeout?: number): Chainable<any>

/**
* 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<any>
/**
* Decide if cypress fails on uncaught exception in console.
* @param option - true or false
Expand Down Expand Up @@ -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}`)
Expand Down

0 comments on commit 107b2f5

Please sign in to comment.