mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +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;
|
||||
}
|
||||
|
||||
let testTimeoutInMilliseconds = 60 * 1000;
|
||||
|
||||
if (leaveRunning) {
|
||||
process.env.E2E_LEAVE_RUNNING = 'true';
|
||||
testTimeoutInMilliseconds = 0;
|
||||
}
|
||||
|
||||
await retry({ retries }, async () => {
|
||||
await runInShell('yarn', [
|
||||
'mocha',
|
||||
'--no-config',
|
||||
'--no-timeouts',
|
||||
'--timeout',
|
||||
testTimeoutInMilliseconds,
|
||||
e2eTestPath,
|
||||
]);
|
||||
});
|
||||
|
@ -41,7 +41,6 @@ describe('Phishing Detection', function () {
|
||||
await driver.navigate();
|
||||
await driver.fill('#password', 'correct horse battery staple');
|
||||
await driver.press('#password', driver.Key.ENTER);
|
||||
await driver.navigate();
|
||||
await driver.openNewPage('http://example.com');
|
||||
await driver.waitForSelector({ text: 'continuing at your own risk' });
|
||||
const header = await driver.findElement('h1');
|
||||
|
Loading…
Reference in New Issue
Block a user