Skip to content

Commit

Permalink
fix: remove unallowed address sa test (#2405)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir authored Jun 12, 2024
1 parent d3490f9 commit ce94753
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
1 change: 0 additions & 1 deletion apps/laboratory/tests/shared/utils/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const EMAIL_APPROVE_BUTTON_TEXT = 'Approve this login'
const APPROVE_URL_REGEX = /https:\/\/register.*/u
const OTP_CODE_REGEX = /\d{3}\s?\d{3}/u
const EMAIL_DOMAIN = 'web3modal.msdc.co'
export const NOT_ENABLED_DOMAIN = 'w3ma.msdc.co'

export class Email {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
32 changes: 0 additions & 32 deletions apps/laboratory/tests/smart-account.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { testModalSmartAccount } from './shared/fixtures/w3m-smart-account-fixture'
import type { ModalWalletPage } from './shared/pages/ModalWalletPage'
import { EOA, SMART_ACCOUNT } from './shared/validators/ModalWalletValidator'
import { Email, NOT_ENABLED_DOMAIN } from './shared/utils/email'

import type { ModalWalletValidator } from './shared/validators/ModalWalletValidator'

Expand Down Expand Up @@ -68,37 +67,6 @@ testModalSmartAccount(
}
)

testModalSmartAccount(
'it should use an eoa and not propose flow when disconnecting and connecting to a not enabled address',
async ({ modalPage, modalValidator, context }, { parallelIndex }) => {
const walletModalPage = modalPage as ModalWalletPage
const walletModalValidator = modalValidator as ModalWalletValidator

const email = new Email(mailsacApiKey)

await walletModalPage.openAccount()
await walletModalPage.openSettings()
await walletModalPage.togglePreferredAccountType()
await walletModalValidator.expectChangePreferredAccountToShow(EOA)
await walletModalPage.disconnect()
await walletModalPage.page.waitForTimeout(1000)

await walletModalPage.emailFlow(
email.getEmailAddressToUse(parallelIndex, NOT_ENABLED_DOMAIN),
context,
mailsacApiKey
)
await walletModalPage.page.waitForTimeout(1500)
await walletModalPage.openAccount()
await walletModalPage.openSettings()
await walletModalValidator.expectTogglePreferredTypeVisible(false)
await walletModalPage.closeModal()

await walletModalPage.openAccount()
await walletModalValidator.expectActivateSmartAccountPromoVisible(false)
}
)

testModalSmartAccount(
'it should properly sign with a 6492 signature',
async ({ modalPage, modalValidator }) => {
Expand Down

0 comments on commit ce94753

Please sign in to comment.