Skip to content

Commit

Permalink
chore: use test pin
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Dec 6, 2024
1 parent bc249ae commit 7787587
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions e2e/src/webwallet/page-objects/Dapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import { ICredentials } from "./Login"
import Navigation from "./Navigation"
import { artifactsDir } from "../../shared/cfg/test"
import { randomUUID } from "crypto"
import SapoEmailClient from "../../shared/src/SapoEmailClient"
import config from "../config"
/* import SapoEmailClient from "../../shared/src/SapoEmailClient"
import config from "../config" */
const dappUrl = "http://localhost:3000/"
let mailClient: SapoEmailClient
//let mailClient: SapoEmailClient

export default class Dapps extends Navigation {
constructor(page: Page) {
super(page)
mailClient = new SapoEmailClient(
/* mailClient = new SapoEmailClient(
config.validLogin.email,
config.emailPassword,
)
) */
}

async requestConnectionFromDapp({
Expand All @@ -35,7 +35,7 @@ export default class Dapps extends Navigation {
if (useStarknetKitModal) {
await dApp.getByRole("button", { name: "Starknetkit Modal" }).click()
const popup = await this.handlePopup(dApp, credentials, newAccount)
await this.verifyEmailInPopup(popup, credentials.email)
//await this.verifyEmailInPopup(popup, credentials.email)
await popup.locator('button[type="submit"]').click()
} else {
const pagePromise = dApp.context().waitForEvent("page")
Expand All @@ -54,7 +54,7 @@ export default class Dapps extends Navigation {
) {
await page.locator("[name=email]").fill(credentials.email)
await page.locator('button[type="submit"]').click()
const pin = await mailClient.getPin()
const pin = "1111111" //await mailClient.getPin()
console.log("PIN:", pin)
await page.locator('[id^="pin-input"]').first().click()
await page.locator('[id^="pin-input"]').first().fill(pin!)
Expand Down

0 comments on commit 7787587

Please sign in to comment.