Skip to content

Commit

Permalink
bump version and add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkadamczyk committed Sep 20, 2024
1 parent 7b12abf commit 09006d2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 29 deletions.
53 changes: 28 additions & 25 deletions commands/phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,34 +300,37 @@ module.exports = {
if (secretWordsOrPrivateKey.includes(' ')) {
// secret words
await module.exports.importWallet(secretWordsOrPrivateKey, password);
} else {
throw new Error(
'Something is wrong with the secret words or private key',
);
}

await switchToPhantomIfNotActive();

// skip welcome page
try {
await playwright
.windows(PROVIDER)
.click(mainPageElements.welcome.takeTheTourButton, {
timeout: 10_000,
});
await playwright
.windows(PROVIDER)
.click(mainPageElements.welcome.takeTheTourButtonNext, {
timeout: 10_000,
});
await playwright
.windows(PROVIDER)
.click(mainPageElements.welcome.takeTheTourButtonNext, {
timeout: 10_000,
});
await playwright
.windows(PROVIDER)
.click(mainPageElements.welcome.takeTheTourButtonNext, {
timeout: 10_000,
});
} catch {
}
// // skip welcome page
// try {
// await playwright
// .windows(PROVIDER)
// .click(mainPageElements.welcome.takeTheTourButton, {
// timeout: 10_000,
// });
// await playwright
// .windows(PROVIDER)
// .click(mainPageElements.welcome.takeTheTourButtonNext, {
// timeout: 10_000,
// });
// await playwright
// .windows(PROVIDER)
// .click(mainPageElements.welcome.takeTheTourButtonNext, {
// timeout: 10_000,
// });
// await playwright
// .windows(PROVIDER)
// .click(mainPageElements.welcome.takeTheTourButtonNext, {
// timeout: 10_000,
// });
// } catch {}

walletAddress = await module.exports.getWalletAddress();
await playwright.switchToCypressWindow();
Expand Down Expand Up @@ -504,7 +507,7 @@ module.exports = {
if (!Object.keys(mainPageElements.defaultWallet).includes(wallet)) {
throw new Error(
'Wallet not supported, support ' +
Object.keys(mainPageElements.defaultWallet).join(', '),
Object.keys(mainPageElements.defaultWallet).join(', '),
);
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phantom/synpress",
"version": "4.0.0-alpha.48",
"version": "4.0.0-alpha.49",
"packageManager": "[email protected]",
"description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.",
"keywords": [
Expand Down Expand Up @@ -70,7 +70,7 @@
"cypress": "12.17.3",
"cypress-wait-until": "^2.0.1",
"debug": "^4.3.4",
"dotenv": "^16.3.1",
"dotenv": "16.4.5",
"dotenv-parse-variables": "^2.0.0",
"download": "^8.0.0",
"ethers": "^6.7.1",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ __metadata:
cypress: "npm:12.17.3"
cypress-wait-until: "npm:^2.0.1"
debug: "npm:^4.3.4"
dotenv: "npm:^16.3.1"
dotenv: "npm:16.4.5"
dotenv-parse-variables: "npm:^2.0.0"
download: "npm:^8.0.0"
eslint: "npm:^8.47.0"
Expand Down Expand Up @@ -4005,7 +4005,7 @@ __metadata:
languageName: node
linkType: hard

"dotenv@npm:^16.3.1":
"dotenv@npm:16.4.5":
version: 16.4.5
resolution: "dotenv@npm:16.4.5"
checksum: 10c0/48d92870076832af0418b13acd6e5a5a3e83bb00df690d9812e94b24aff62b88ade955ac99a05501305b8dc8f1b0ee7638b18493deb6fe93d680e5220936292f
Expand Down

0 comments on commit 09006d2

Please sign in to comment.