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

✨ feat: Implemented connectToDapp, addNewAccount in Cypress #1181

Merged
merged 17 commits into from
Jul 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
fix: gitignore cleanup
matstyler committed Jul 8, 2024
commit 3f9e804ff423368a7640e342e08a3aefcbc9af6b
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ playwright-report
playwright/.cache

### Cypress
cypress/downloads
wallets/metamask/downloads

### Synpress

Binary file not shown.
Loading

Unchanged files with check annotations Beta

/**
* The password of the MetaMask wallet.
*/
readonly password: string,

Check warning

Code scanning / CodeQL

Useless assignment to property Warning

This write to property 'password' is useless, since
another property write
always overrides it.
/**
* The extension ID of the MetaMask extension. Optional if no interaction with the dapp is required.
*/
import { confirmSecretRecoveryPhrase, createPassword } from './helpers'

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused imports confirmSecretRecoveryPhrase, createPassword.
import { onboardingPage, homePage } from '../../../../selectors';
import { closePopover } from '../../../../playwright/pages/HomePage/actions';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import closePopover.
export async function importWallet(seedPhrase: string, password: string) {
cy.get(onboardingPage.GetStartedPageSelectors.termsOfServiceCheckbox).click()
// Checks if the wallet was imported successfully.
// On rare occasions, the MetaMask hangs during the onboarding process.
async function verifyImportedWallet(page: Page) {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused function verifyImportedWallet.
const accountAddress = await cy.get(homePage.copyAccountAddressButton).textContent()
assert.strictEqual(