Skip to content

Commit

Permalink
chore format code with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Mar 5, 2024
1 parent 682e71d commit 9ab2db4
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions commands/keplr.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const keplr = {
return {
registrationUrl,
permissionsUrl,
popupUrl
popupUrl,
};
},
async goTo(url) {
Expand Down Expand Up @@ -75,7 +75,7 @@ const keplr = {
extensionVersion,
registrationUrl,
permissionsUrl,
popupUrl
popupUrl,
};
},
async disconnectWalletFromDapp() {
Expand Down Expand Up @@ -125,9 +125,10 @@ const keplr = {
onboardingElements.walletName,
);

const passwordFieldExists = await playwright.waitForAndCheckElementExistence(
onboardingElements.passwordInput,
);
const passwordFieldExists =
await playwright.waitForAndCheckElementExistence(
onboardingElements.passwordInput,
);

if (passwordFieldExists) {
await playwright.waitAndType(onboardingElements.passwordInput, password);
Expand Down Expand Up @@ -227,16 +228,16 @@ const keplr = {
await notificationPage.close();
return true;
},

async getWalletAddress() {
await playwright.switchToKeplrWindow()
await module.exports.goToHome()
const page = await playwright.keplrWindow()
await playwright.waitAndClickByText(notificationPageElements.copyAddress)
await page.click(notificationPageElements.copyWalletAddressSelector);
const walletAddress = clipboardy.readSync();
await playwright.switchToCypressWindow()
return walletAddress
await playwright.switchToKeplrWindow();
await module.exports.goToHome();
const page = await playwright.keplrWindow();
await playwright.waitAndClickByText(notificationPageElements.copyAddress);
await page.click(notificationPageElements.copyWalletAddressSelector);
const walletAddress = clipboardy.readSync();
await playwright.switchToCypressWindow();
return walletAddress;
},

async initialSetup(
Expand Down

0 comments on commit 9ab2db4

Please sign in to comment.