Skip to content

Commit 3ff646b

Browse files
authored
Changed the drop down class name and type of selection (#22727)
## **Description** Fixing flaky test "Check if user select different type of secret recovery phrase" modified the dropdown to specifically select the element related to the secret recovery phrase, distinguishing it from another dropdown used for language selection. Additionally, updated the method to find elements by using a CSS selector for option selection. ## **Related issues** #22714
1 parent 8317671 commit 3ff646b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/e2e/tests/onboarding.spec.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,11 @@ describe('MetaMask onboarding @no-mmi', function () {
117117

118118
await driver.clickElement('[data-testid="metametrics-no-thanks"]');
119119

120-
const dropdowns = await driver.findElements('select');
121-
const dropdownElement = dropdowns[1];
122-
await dropdownElement.click();
123-
const options = await dropdownElement.findElements(
124-
By.tagName('option'),
120+
const dropdownElement = await driver.findElement(
121+
'.import-srp__number-of-words-dropdown',
125122
);
123+
await dropdownElement.click();
124+
const options = await dropdownElement.findElements(By.css('option'));
126125

127126
const iterations = options.length;
128127

0 commit comments

Comments
 (0)