mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
26 lines
854 B
JavaScript
26 lines
854 B
JavaScript
import * as constants from '../../support/constants.js'
|
|
import * as main from '../pages/main.page.js'
|
|
import * as spendinglimit from '../pages/spending_limits.pages.js'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
|
|
let staticSafes = []
|
|
|
|
describe('Spending limits non-owner tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
beforeEach(() => {
|
|
cy.visit(constants.setupUrl + staticSafes.SEP_STATIC_SAFE_3)
|
|
cy.get(spendinglimit.spendingLimitsSection).should('be.visible')
|
|
})
|
|
|
|
it('Verify that where there are no spending limits setup, information images are displayed', () => {
|
|
spendinglimit.verifySpendingLimitsIcons()
|
|
})
|
|
|
|
it('Verify "New spending limit" button only available for owners', () => {
|
|
spendinglimit.verifySpendingLimitBtnIsDisabled()
|
|
})
|
|
})
|