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

Stabilize e2e tests for phishing detection #21152

Merged
merged 3 commits into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('Phishing Detection', function () {
await driver.fill('#password', 'correct horse battery staple');
await driver.press('#password', driver.Key.ENTER);
await openDapp(driver);
await driver.switchToWindowWithTitle('MetaMask Phishing Detection');
await driver.clickElement({
text: 'continue to the site.',
});
Expand Down Expand Up @@ -177,6 +178,7 @@ describe('Phishing Detection', function () {
await driver.press('#password', driver.Key.ENTER);
await openDapp(driver);

await driver.switchToWindowWithTitle('MetaMask Phishing Detection');
await driver.clickElement({ text: 'report a detection problem.' });

// wait for page to load before checking URL.
Expand Down Expand Up @@ -215,6 +217,7 @@ describe('Phishing Detection', function () {
await driver.press('#password', driver.Key.ENTER);
await driver.openNewPage(phishingSite.href);

await driver.switchToWindowWithTitle('MetaMask Phishing Detection');
await driver.clickElement({ text: 'report a detection problem.' });

// wait for page to load before checking URL.
Expand Down Expand Up @@ -252,6 +255,7 @@ describe('Phishing Detection', function () {
await driver.press('#password', driver.Key.ENTER);
await driver.openNewPage('http://127.0.0.1:8080');

await driver.switchToWindowWithTitle('MetaMask Phishing Detection');
await driver.clickElement({ text: 'report a detection problem.' });

// wait for page to load before checking URL.
Expand Down
Loading