Skip to content

Commit fb92536

Browse files
committed
corrected some steps
1 parent 630443d commit fb92536

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

tests/e2e-playwright/tests/tip/test_ti_plan.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,17 @@ def test_classic_ti_plan( # noqa: PLR0915
213213
)
214214

215215
with log_context(logging.INFO, "Create report"):
216+
217+
ti_iframe.get_by_role("button", name="Load Analysis").click()
218+
page.wait_for_timeout(_JLAB_REPORTING_MAX_TIME)
219+
ti_iframe.get_by_role("button", name="Load").nth(1).click()
220+
page.wait_for_timeout(_JLAB_REPORTING_MAX_TIME)
221+
216222
if is_product_lite:
217-
# NOTE: buttons should be disabled
218-
assert not ti_iframe.get_by_role(
219-
"button", name="Load Analysis"
220-
).is_enabled()
221223
assert (
222-
not ti_iframe.get_by_role("button", name="Load").nth(1).is_enabled()
224+
not ti_iframe.get_by_role("button", name="Add to Report (0)")
225+
.nth(0)
226+
.is_enabled()
223227
)
224228
assert not ti_iframe.get_by_role(
225229
"button", name="Export to S4L"
@@ -229,10 +233,6 @@ def test_classic_ti_plan( # noqa: PLR0915
229233
).is_enabled()
230234

231235
else:
232-
ti_iframe.get_by_role("button", name="Load Analysis").click()
233-
page.wait_for_timeout(_JLAB_REPORTING_MAX_TIME)
234-
ti_iframe.get_by_role("button", name="Load").nth(1).click()
235-
page.wait_for_timeout(_JLAB_REPORTING_MAX_TIME)
236236
ti_iframe.get_by_role("button", name="Add to Report (0)").nth(0).click()
237237
page.wait_for_timeout(_JLAB_REPORTING_MAX_TIME)
238238
ti_iframe.get_by_role("button", name="Export to S4L").click()
@@ -244,7 +244,12 @@ def test_classic_ti_plan( # noqa: PLR0915
244244

245245
with log_context(logging.INFO, "Check outputs"):
246246
if is_product_lite:
247-
pass
247+
expected_outputs = ["results.csv"]
248+
text_on_output_button = f"Outputs ({len(expected_outputs)})"
249+
page.get_by_test_id("outputsBtn").get_by_text(
250+
text_on_output_button
251+
).click()
252+
248253
else:
249254
expected_outputs = ["output_1.zip", "TIP_report.pdf", "results.csv"]
250255
text_on_output_button = f"Outputs ({len(expected_outputs)})"

0 commit comments

Comments
 (0)