Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unallowed address sa test #2405

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading