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: disable previews on telegram bot messages
Andrey Lushnikovb8259837a411
diff --git a/browser_patches/buildbots/send_telegram_message.sh b/browser_patches/buildbots/send_telegram_message.shindex 2b70e2927a..7fb4bd248c 100644--- a/browser_patches/buildbots/send_telegram_message.sh+++ b/browser_patches/buildbots/send_telegram_message.sh@@ -9,6 +9,6 @@ send_telegram_message() {curl --silent \-X POST \-H 'Content-Type: application/json' \- -d '{"chat_id": "-1001225613794", "parse_mode": "html", "text": "'"$TEXT"'", "disable_notification": false}' \+ -d '{"disable_web_page_preview": true, "chat_id": "-1001225613794", "parse_mode": "html", "text": "'"$TEXT"'", "disable_notification": false}' \https://api.telegram.org/bot$TELEGRAM_BOT_KEY/sendMessage >/dev/null}diff --git a/browser_patches/checkout_build_archive_upload.sh b/browser_patches/checkout_build_archive_upload.shindex 5ddc13044e..a54bc60534 100755--- a/browser_patches/checkout_build_archive_upload.sh+++ b/browser_patches/checkout_build_archive_upload.sh@@ -117,7 +117,8 @@ trap "rm -rf ${ZIP_PATH}; rm -rf ${LOG_PATH}; cd $(pwd -P);" INT TERM EXITcd "$(dirname "$0")"BUILD_NUMBER=$(cat ./$BROWSER_NAME/BUILD_NUMBER)BUILD_BLOB_PATH="${BROWSER_NAME}/${BUILD_NUMBER}/${BUILD_BLOB_NAME}"-LOG_BLOB_PATH="${BROWSER_NAME}/${BUILD_NUMBER}/${BUILD_BLOB_NAME%.zip}.log.gz"+LOG_BLOB_NAME="${BUILD_BLOB_NAME%.zip}.log.gz"+LOG_BLOB_PATH="${BROWSER_NAME}/${BUILD_NUMBER}/${LOG_BLOB_NAME}"# pull from upstream and check if a new build has to be uploaded.if ! [[ ($2 == '-f') || ($2 == '--force') ]]; then@@ -213,6 +214,6 @@ elsefi# Upload logs only in case of failure and report failure../upload.sh ${LOG_BLOB_PATH} ${LOG_PATH} || true- send_telegram_message "$BUILD_ALIAS -- ${FAILED_STEP} failed! ❌ <a href='https://playwright.azureedge.net/builds/${LOG_BLOB_PATH}'>see logs</a>"+ send_telegram_message "$BUILD_ALIAS -- ${FAILED_STEP} failed! ❌ <a href='https://playwright.azureedge.net/builds/${LOG_BLOB_PATH}'>${LOG_BLOB_NAME}</a>"fi