Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: fix checkout re-use for multiple different base branches (#15231)
Andrey Lushnikov29c1ccd6904c
diff --git a/browser_patches/prepare_checkout.sh b/browser_patches/prepare_checkout.shindex 648c0b7b3a..2ec4a2d8a9 100755--- a/browser_patches/prepare_checkout.sh+++ b/browser_patches/prepare_checkout.sh@@ -189,6 +189,11 @@ elsegit remote rename origin $REMOTE_BROWSER_UPSTREAMfi+# Since we do a single-branch checkout by default, we might need to add a new remote base branch.+if ! git show-branch "remotes/$REMOTE_BROWSER_UPSTREAM/${BASE_BRANCH}" 2>&1 >/dev/null; then+ git remote set-branches --add "$REMOTE_BROWSER_UPSTREAM" "${BASE_BRANCH}"+fi+# if our remote branch does not contains "BASE_REVISION" - then fetch more stuff.if [[ -z $(git branch -r --contains "${BASE_REVISION}" --list "${REMOTE_BROWSER_UPSTREAM}/${BASE_BRANCH}") ]]; then# Detach git head so that we can fetch into branch.