Skip to content

Commit

Permalink
test runner updates to handle post for #2471
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl authored Jan 12, 2023
1 parent 4462d50 commit c95c3ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion www/runtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,10 @@ function buildSelfHost($hosts)
}
$ingredients = implode(",", $ingredients);
}
if($recipeSansId === "editresponsehtml"){
// striking out the ingredients here because it's too much to send in a cookie
$ingredients = "";
}
// these recipes need encoded values. they all do afterwards! TODO
if (
$recipeSansId === "insertheadstart"
Expand Down Expand Up @@ -1109,7 +1113,7 @@ function buildSelfHost($hosts)


//replace last step with last step plus recipes
$test['script'] = str_replace($scriptNavigate, "setCookie\t" . $originToUse . "\twpt-experiments=" . urlencode($recipeScript) . "\r\n" . $scriptNavigate, $test['script']);
$test['script'] = str_replace($scriptNavigate, "setCookie\t" . $originToUse . "\twpt-experiments=" . urlencode($recipeScript) . "\r\n" . "setCookie\t" . $originToUse . "\twpt-testid=" . urlencode($id) . "\r\n" . $scriptNavigate, $test['script']);


$id = CreateTest($test, $test['url']);
Expand Down

0 comments on commit c95c3ed

Please sign in to comment.