mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
32 lines
864 B
JavaScript
32 lines
864 B
JavaScript
export const modalTitle = '[data-testid="modal-title"]'
|
|
export const modal = '[data-testid="modal-view"]'
|
|
export const modalHeader = '[data-testid="modal-header"]'
|
|
export const cardContent = '[data-testid="card-content"]'
|
|
const askMeLaterOutreachBtn = 'Ask me later'
|
|
|
|
export const modalTitiles = {
|
|
editEntry: 'Edit entry',
|
|
deleteEntry: 'Delete entry',
|
|
dataImport: 'Data import',
|
|
confirmTx: 'Confirm transaction',
|
|
confirmMsg: 'Confirm message',
|
|
}
|
|
|
|
export function verifyModalTitle(title) {
|
|
cy.get(modalTitle).should('contain', title)
|
|
}
|
|
|
|
export function suspendOutreachModal() {
|
|
cy.get('button')
|
|
.contains(askMeLaterOutreachBtn)
|
|
.should(() => {})
|
|
.then(($button) => {
|
|
if (!$button.length) {
|
|
return
|
|
}
|
|
cy.wrap($button).click()
|
|
cy.contains(askMeLaterOutreachBtn).should('not.exist')
|
|
cy.wait(500)
|
|
})
|
|
}
|