mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* chore(web): upgrade cypress to v15 # Conflicts: # yarn.lock * fix(web): cypress tests for uploading files * fix(web): failing address_book tests
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
import * as constants from '../../support/constants'
|
|
import * as safe from '../pages/load_safe.pages'
|
|
import * as createwallet from '../pages/create_wallet.pages'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
|
|
let staticSafes = []
|
|
|
|
const testSafeName = 'Test safe name'
|
|
const testOwnerName = 'Test Owner Name'
|
|
|
|
describe('Load Safe tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
beforeEach(() => {
|
|
cy.visit(constants.loadNewSafeSepoliaUrl)
|
|
cy.wait(2000)
|
|
})
|
|
|
|
it('Verify custom name in the first owner can be set', () => {
|
|
safe.inputNameAndAddress(testSafeName, staticSafes.SEP_STATIC_SAFE_4)
|
|
safe.clickOnNextBtn()
|
|
createwallet.typeOwnerName(testOwnerName, 0)
|
|
safe.clickOnNextBtn()
|
|
})
|
|
|
|
// Added to prod
|
|
it('Verify Safe and owner names are displayed in the Review step', () => {
|
|
safe.inputNameAndAddress(testSafeName, staticSafes.SEP_STATIC_SAFE_4)
|
|
safe.clickOnNextBtn()
|
|
createwallet.typeOwnerName(testOwnerName, 0)
|
|
safe.clickOnNextBtn()
|
|
safe.verifyDataInReviewSection(testSafeName, testOwnerName)
|
|
safe.clickOnAddBtn()
|
|
})
|
|
})
|