Skip to content

Commit

Permalink
WIP: Upload HTML output to pastebin
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov committed Feb 17, 2024
1 parent 3c8678b commit 5ed5ae2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: "Install Dependencies"
run: |
sudo apt install wait-for-it -y
playwright install chromium
playwright install chromium pastebinit
yarn install --immutable
yarn run build
Expand Down
6 changes: 6 additions & 0 deletions test/playwright/test_ux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5ed5ae2

Please sign in to comment.