From 79a0e78ed642458fcc0467fa0dbb22d0ea203b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ott=C3=B3?= Date: Mon, 28 Oct 2024 10:11:33 -0500 Subject: [PATCH] changed the collection and assertion --- backend/app/tests/ui/test_e2e_pdf_jobs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/tests/ui/test_e2e_pdf_jobs.py b/backend/app/tests/ui/test_e2e_pdf_jobs.py index ee560516..7a8003f8 100644 --- a/backend/app/tests/ui/test_e2e_pdf_jobs.py +++ b/backend/app/tests/ui/test_e2e_pdf_jobs.py @@ -11,7 +11,7 @@ @pytest.mark.nondestructive @pytest.mark.parametrize( "repo, book, version", - [("osbooks-otto-book", "ottó-könyv", "main")], + [("osbooks-otto-book", "hellas", "main")], ) def test_e2e_pdf_jobs(chrome_page_slow, corgi_base_url, repo, book, version): # GIVEN: Playwright, chromium and the corgi_base_url @@ -99,10 +99,11 @@ def test_e2e_pdf_jobs(chrome_page_slow, corgi_base_url, repo, book, version): flat_liszt = [item for sublist in liszt for item in sublist] + print(flat_liszt) + try: assert any("Preface" in word for word in flat_liszt) assert any("Chapter Outline" in word for word in flat_liszt) - assert any("Index" in word for word in flat_liszt) except AssertionError: pytest.fail(