mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 11:28:51 +01:00
update isElementPresent usages (#20112)
This commit is contained in:
parent
26225aabe0
commit
4422ce6eef
@ -40,9 +40,6 @@ describe('Send NFT', function () {
|
||||
await driver.clickElement({ text: 'Next', tag: 'button' });
|
||||
|
||||
// Edit the NFT, ensure same address, and move forward
|
||||
await driver.isElementPresentAndVisible(
|
||||
'[data-testid="confirm-page-back-edit-button"]',
|
||||
);
|
||||
await driver.clickElement(
|
||||
'[data-testid="confirm-page-back-edit-button"]',
|
||||
);
|
||||
|
@ -162,12 +162,11 @@ describe('MetaMask onboarding', function () {
|
||||
);
|
||||
|
||||
// Check that the error message is displayed for the password fields
|
||||
await driver.isElementPresent(
|
||||
// eslint-disable-next-line prettier/prettier
|
||||
{ text: "Passwords don't match", tag: 'h6' },
|
||||
true,
|
||||
);
|
||||
|
||||
const passwordErrorIsDisplayed = await driver.isElementPresent({
|
||||
text: "Passwords don't match",
|
||||
css: 'h6',
|
||||
});
|
||||
assert.equal(passwordErrorIsDisplayed, true);
|
||||
// Check that the "Confirm Password" button is disabled
|
||||
const confirmPasswordButton = await driver.findElement(
|
||||
'[data-testid="create-password-wallet"]',
|
||||
|
@ -27,13 +27,11 @@ describe('Reveal SRP through settings', function () {
|
||||
await completeSRPRevealQuiz(driver);
|
||||
await driver.fill('#password-box', wrongTestPassword);
|
||||
await driver.press('#password-box', driver.Key.ENTER);
|
||||
await driver.isElementPresent(
|
||||
{
|
||||
const passwordErrorIsDisplayed = await driver.isElementPresent({
|
||||
css: '.mm-help-text',
|
||||
text: 'Incorrect password',
|
||||
},
|
||||
true,
|
||||
);
|
||||
});
|
||||
assert.equal(passwordErrorIsDisplayed, true);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user