From f4a167614f3778df6ee41896cf5427ada9577093 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Sat, 17 Feb 2024 21:21:54 +0100 Subject: [PATCH] WIP: Upload HTML output to pastebin --- .github/workflows/test.yml | 2 +- test/playwright/test_ux.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 55f1a7ad..542bea14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,7 +49,7 @@ jobs: - name: "Install Dependencies" run: | - sudo apt install wait-for-it -y + sudo apt install wait-for-it pastebinit -y playwright install chromium yarn install --immutable yarn run build diff --git a/test/playwright/test_ux.py b/test/playwright/test_ux.py index 3e8a6777..4c577d4f 100644 --- a/test/playwright/test_ux.py +++ b/test/playwright/test_ux.py @@ -194,6 +194,12 @@ def _existing_environment_interactions(page, env_name, time_to_build_env=3*60*10 page.get_by_placeholder("Enter here the description of your environment").fill("new description") # change the vesion spec of an existing package page.get_by_role("row", name="ipykernel", exact=False).get_by_role("button").first.click() + + with open("./foo.html", "w", encoding='utf-8') as f: + f.write(page.content()) + import os + os.system("pastebinit -i ./foo.html -b dpaste.com") + page.get_by_role("option", name=">=").click() # Note: purposefully not testing version constraint since there is inconsistent behavior here