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:
parent
cef95f8733
commit
f947e5721a
@ -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,
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user