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: ensure that embedder directory does not exist (#4340)
Yury Semikhatsky283bc2c7d0b4
diff --git a/browser_patches/prepare_checkout.sh b/browser_patches/prepare_checkout.shindex 6d06370897..8771d3e002 100755--- a/browser_patches/prepare_checkout.sh+++ b/browser_patches/prepare_checkout.sh@@ -124,12 +124,24 @@ git apply --index --whitespace=nowarn $PATCHES_PATH/*if [[ ! -z "${WEBKIT_EXTRA_FOLDER_PATH}" ]]; thenecho "-- adding WebKit embedders"- cp -r "${WEBKIT_EXTRA_FOLDER_PATH}" ./Tools/Playwright- git add Tools/Playwright+ EMBEDDER_DIR="$PWD/Tools/Playwright"+ # git status does not show empty directories, check it separately.+ if [[ -d $EMBEDDER_DIR ]]; then+ echo "ERROR: $EMBEDDER_DIR already exists! Remove it and re-run the script."+ exit 1+ fi+ cp -r "${WEBKIT_EXTRA_FOLDER_PATH}" $EMBEDDER_DIR+ git add $EMBEDDER_DIRelif [[ ! -z "${FIREFOX_EXTRA_FOLDER_PATH}" ]]; thenecho "-- adding juggler"- cp -r "${FIREFOX_EXTRA_FOLDER_PATH}" ./juggler- git add juggler+ EMBEDDER_DIR="$PWD/juggler"+ # git status does not show empty directories, check it separately.+ if [[ -d $EMBEDDER_DIR ]]; then+ echo "ERROR: $EMBEDDER_DIR already exists! Remove it and re-run the script."+ exit 1+ fi+ cp -r "${FIREFOX_EXTRA_FOLDER_PATH}" $EMBEDDER_DIR+ git add $EMBEDDER_DIRfigit commit -a --author="playwright-devops <[email protected]>" -m "chore: bootstrap build #$BUILD_NUMBER"