Skip to content

Commit b73ae19

Browse files
authored
update deps and make test more robust (#379)
1 parent ce68c83 commit b73ae19

File tree

2 files changed

+420
-359
lines changed

2 files changed

+420
-359
lines changed

backend/tests_e2e/test_e2e.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_spectrum_submission_tab_switching(
151151
) -> None:
152152
"""Test tab switching behavior in spectrum submission form."""
153153
# Create a protein so owner_state field has options
154-
protein = ProteinFactory.create()
154+
protein = ProteinFactory.create(name="TabSwitchTestProtein")
155155

156156
url = f"{live_server.url}{reverse('proteins:submit-spectra')}"
157157
auth_page.goto(url)
@@ -182,6 +182,7 @@ def test_spectrum_submission_tab_switching(
182182
data_field.fill("[[400,0.1],[401,0.2],[402,0.3],[403,0.5],[404,0.8],[405,1.0]]")
183183

184184
# Visual snapshot: manual tab active with data
185+
expect(auth_page.get_by_text("File Upload")).not_to_be_visible()
185186
assert_snapshot(auth_page)
186187

187188
# Switch back to file tab
@@ -193,6 +194,7 @@ def test_spectrum_submission_tab_switching(
193194
expect(submit_btn).to_be_visible()
194195

195196
# Visual snapshot: file tab active
197+
expect(auth_page.get_by_text("File Upload")).to_be_visible()
196198
assert_snapshot(auth_page)
197199

198200

0 commit comments

Comments
 (0)