frontend tests: retry should retry with the same padName, which was not true in case there was no padName supplied (#4206)

pull/4210/head
webzwo0i 2020-07-29 20:26:09 +02:00 committed by GitHub
parent 1b6a9d8be0
commit acfa1b6b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -112,13 +112,13 @@ var helper = {};
helper.clearSessionCookies(); helper.clearSessionCookies();
} }
// needed for retry
let origPadName = padName;
if(!padName) if(!padName)
padName = "FRONTEND_TEST_" + helper.randomString(20); padName = "FRONTEND_TEST_" + helper.randomString(20);
$iframe = $("<iframe src='/p/" + padName + (encodedParams || '') + "'></iframe>"); $iframe = $("<iframe src='/p/" + padName + (encodedParams || '') + "'></iframe>");
// needed for retry
let origPadName = padName;
//clean up inner iframe references //clean up inner iframe references
helper.padChrome$ = helper.padOuter$ = helper.padInner$ = null; helper.padChrome$ = helper.padOuter$ = helper.padInner$ = null;