Skip to content

Commit

Permalink
test new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkadamczyk committed Oct 3, 2024
1 parent 09006d2 commit 598a982
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions commands/phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,24 +276,30 @@ module.exports = {
enableExperimentalSettings,
},
) {
console.log('initialSetup');
await playwright.init(playwrightInstance);
console.log('assigning windows');
await playwright.assignWindows(PROVIDER);
console.log('assigning active tab');
await playwright.assignActiveTabName(PROVIDER);
console.log('get extension details');
await module.exports.getExtensionDetails();
console.log('fix blank page');
await playwright.fixBlankPage(
PROVIDER,
playwright.windows(PROVIDER),
app.root,
);

console.log('switch to phantom');
await playwright.switchToWindow(PROVIDER);

if (
await playwright
.windows(PROVIDER)
.locator(firstTimeFlowPageElements.importWalletButton)
.isVisible()
) {
const isImportButtonVisible = await playwright
.windows(PROVIDER)
.locator(firstTimeFlowPageElements.importWalletButton)
.isVisible();
console.log('isImportButtonVisible: ', isImportButtonVisible);
if (isImportButtonVisible) {
/**
* SEED PHRASE IMPORT
*/
Expand Down
2 changes: 1 addition & 1 deletion pages/phantom/first-time-flow-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports.metametricsPageElements = {
};

const firstTimeFlowPage = '.first-time-flow';
const importWalletButton = `text=Import an existing wallet`;
const importWalletButton = `text=I already have a wallet`;
const importRecoveryPhraseButton = `text=Import Secret Recovery Phrase`;
const createWalletButton = `${firstTimeFlowPage} [data-testid="create-wallet-button"]`;
module.exports.firstTimeFlowPageElements = {
Expand Down

0 comments on commit 598a982

Please sign in to comment.