Files
safe-wallet/apps/web/cypress/e2e/regression/spending_limits_nonowner.cy.js

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()
})
})