Skip to content

Commit 27efc9d

Browse files
cristipufuclaude
andcommitted
fix: use #entrypoint-select id in e2e tests to avoid auth dropdown conflict
Add id="entrypoint-select" to the entrypoint <select> in NewRunPanel and update test selectors to target it specifically instead of generic document.querySelector('select'). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 04d30cb commit 27efc9d

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

src/uipath/dev/server/frontend/src/components/runs/NewRunPanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default function NewRunPanel() {
7272
Entrypoint
7373
</label>
7474
<select
75+
id="entrypoint-select"
7576
value={selectedEp}
7677
onChange={(e) => setSelectedEp(e.target.value)}
7778
className="w-full rounded-md px-3 py-1.5 text-xs font-mono cursor-pointer appearance-auto"

src/uipath/dev/server/static/assets/ChatPanel-DiTGBtBE.js renamed to src/uipath/dev/server/static/assets/ChatPanel-C74yCiTD.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uipath/dev/server/static/assets/index-CGm4OcYH.js renamed to src/uipath/dev/server/static/assets/index-BUdyXAiW.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uipath/dev/server/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>UiPath Developer Console</title>
77
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8-
<script type="module" crossorigin src="/assets/index-CGm4OcYH.js"></script>
8+
<script type="module" crossorigin src="/assets/index-BUdyXAiW.js"></script>
99
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BVoutfaX.js">
1010
<link rel="modulepreload" crossorigin href="/assets/vendor-reactflow-mU21rT8r.js">
1111
<link rel="stylesheet" crossorigin href="/assets/vendor-reactflow-B5DZHykP.css">

tests/e2e/test_web_run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def _wait_for_entrypoints(page: Page) -> None:
1212
"""Wait until the entrypoint dropdown has real options loaded."""
1313
page.wait_for_function(
1414
"() => {"
15-
" const s = document.querySelector('select');"
15+
" const s = document.querySelector('#entrypoint-select');"
1616
" return s && s.options.length > 0"
1717
" && !s.options[0].text.includes('Loading');"
1818
"}",
@@ -23,7 +23,7 @@ def _wait_for_entrypoints(page: Page) -> None:
2323
def _go_to_new_run(page: Page, url: str) -> None:
2424
"""Navigate to the new run page and wait for entrypoints."""
2525
page.goto(f"{url}/#/new")
26-
expect(page.get_by_role("combobox")).to_be_visible()
26+
expect(page.locator("#entrypoint-select")).to_be_visible()
2727
_wait_for_entrypoints(page)
2828

2929

@@ -54,7 +54,7 @@ def test_new_run_page_loads(page: Page, live_server_url: str):
5454
expect(page.get_by_text("New Run", exact=True)).to_be_visible()
5555

5656
# Dropdown should have at least one real entrypoint
57-
combo = page.get_by_role("combobox")
57+
combo = page.locator("#entrypoint-select")
5858
option_count = combo.evaluate("el => el.options.length")
5959
assert option_count >= 1
6060

0 commit comments

Comments
 (0)