1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

E2e test timeout (#14483)

* e2e test timeout threshold

* enable logging for single test

* more logging

* remove redundant step in test
This commit is contained in:
PeterYinusa 2022-04-21 16:51:03 +01:00 committed by GitHub
parent cef95f8733
commit f947e5721a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -69,15 +69,19 @@ async function main() {
throw error; throw error;
} }
let testTimeoutInMilliseconds = 60 * 1000;
if (leaveRunning) { if (leaveRunning) {
process.env.E2E_LEAVE_RUNNING = 'true'; process.env.E2E_LEAVE_RUNNING = 'true';
testTimeoutInMilliseconds = 0;
} }
await retry({ retries }, async () => { await retry({ retries }, async () => {
await runInShell('yarn', [ await runInShell('yarn', [
'mocha', 'mocha',
'--no-config', '--no-config',
'--no-timeouts', '--timeout',
testTimeoutInMilliseconds,
e2eTestPath, e2eTestPath,
]); ]);
}); });

View File

@ -41,7 +41,6 @@ describe('Phishing Detection', function () {
await driver.navigate(); await driver.navigate();
await driver.fill('#password', 'correct horse battery staple'); await driver.fill('#password', 'correct horse battery staple');
await driver.press('#password', driver.Key.ENTER); await driver.press('#password', driver.Key.ENTER);
await driver.navigate();
await driver.openNewPage('http://example.com'); await driver.openNewPage('http://example.com');
await driver.waitForSelector({ text: 'continuing at your own risk' }); await driver.waitForSelector({ text: 'continuing at your own risk' });
const header = await driver.findElement('h1'); const header = await driver.findElement('h1');