Skip to content

Commit f6ae2f6

Browse files
committed
More e2e test fixes
1 parent 7173829 commit f6ae2f6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

test/e2e/metamask-ui.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ describe('MetaMask', function () {
9999
await driver.delay(largeDelayMs);
100100
});
101101

102-
it('clicks the "Create New Wallet" option', async function () {
103-
await driver.clickElement({ text: 'Create a Wallet', tag: 'button' });
102+
it('clicks the "No thanks" option on the metametrics opt-in screen', async function () {
103+
await driver.clickElement('.btn-secondary');
104104
await driver.delay(largeDelayMs);
105105
});
106106

107-
it('clicks the "No thanks" option on the metametrics opt-in screen', async function () {
108-
await driver.clickElement('.btn-secondary');
107+
it('clicks the "Create New Wallet" option', async function () {
108+
await driver.clickElement({ text: 'Create a Wallet', tag: 'button' });
109109
await driver.delay(largeDelayMs);
110110
});
111111

test/e2e/tests/incremental-security.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ describe('Incremental Security', function () {
3838
tag: 'button',
3939
});
4040

41-
// clicks the "Create New Wallet" option
42-
await driver.clickElement({ text: 'Create a Wallet', tag: 'button' });
43-
4441
// clicks the "No thanks" option on the metametrics opt-in screen
4542
await driver.clickElement('.btn-secondary');
4643

44+
// clicks the "Create New Wallet" option
45+
await driver.clickElement({ text: 'Create a Wallet', tag: 'button' });
46+
4747
// accepts a secure password
4848
await driver.fill(
4949
'.first-time-flow__form #create-password',

test/e2e/tests/metamask-responsive-ui.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ describe('MetaMask Responsive UI', function () {
8787
});
8888
await driver.delay(tinyDelayMs);
8989

90-
// clicks the "Create New Wallet" option
91-
await driver.clickElement({ text: 'Create a Wallet', tag: 'button' });
92-
9390
// clicks the "I Agree" option on the metametrics opt-in screen
9491
await driver.clickElement('.btn-primary');
9592

93+
// clicks the "Create New Wallet" option
94+
await driver.clickElement({ text: 'Create a Wallet', tag: 'button' });
95+
9696
// accepts a secure password
9797
await driver.fill(
9898
'.first-time-flow__form #create-password',

0 commit comments

Comments
 (0)