Skip to content

Commit efcfef4

Browse files
committed
Improve tests
1 parent 7055fb6 commit efcfef4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

adit/batch_query/tests/integration/test_batch_query.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
add_permission,
55
add_user_to_group,
66
create_and_login_example_user,
7-
poll_locator,
87
run_worker_once,
98
)
109
from playwright.sync_api import Page, expect
@@ -49,9 +48,10 @@ def test_urgent_batch_query_with_dimse_server(page: Page, live_server: LiveServe
4948
page.locator('input:has-text("Create job")').click()
5049

5150
run_worker_once()
51+
page.reload()
5252

5353
# Assert
54-
expect(poll_locator(page.locator('dl:has-text("Success")'))).to_be_visible()
54+
expect(page.locator('dl:has-text("Success")')).to_be_visible()
5555

5656

5757
@pytest.mark.integration
@@ -83,6 +83,7 @@ def test_urgent_batch_query_with_dicomweb_server(page: Page, live_server: LiveSe
8383
page.locator('input:has-text("Create job")').click()
8484

8585
run_worker_once()
86+
page.reload()
8687

8788
# Assert
88-
expect(poll_locator(page.locator('dl:has-text("Success")'))).to_be_visible()
89+
expect(page.locator('dl:has-text("Success")')).to_be_visible()

adit/batch_transfer/tests/integration/test_batch_transfer.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
add_permission,
55
add_user_to_group,
66
create_and_login_example_user,
7-
poll_locator,
87
run_worker_once,
98
)
109
from playwright.sync_api import Page, expect
@@ -54,9 +53,10 @@ def test_unpseudonymized_urgent_batch_transfer_with_dimse_server(
5453
page.locator('input:has-text("Create job")').click()
5554

5655
run_worker_once()
56+
page.reload()
5757

5858
# Assert
59-
expect(poll_locator(page.locator('dl:has-text("Success")'))).to_be_visible()
59+
expect(page.locator('dl:has-text("Success")')).to_be_visible()
6060

6161

6262
@pytest.mark.integration
@@ -93,6 +93,7 @@ def test_unpseudonymized_urgent_batch_transfer_with_dicomweb_server(
9393
page.locator('input:has-text("Create job")').click()
9494

9595
run_worker_once()
96+
page.reload()
9697

9798
# Assert
98-
expect(poll_locator(page.locator('dl:has-text("Success")'))).to_be_visible()
99+
expect(page.locator('dl:has-text("Success")')).to_be_visible()

0 commit comments

Comments
 (0)