From d0d88cb181f089197dd9c0fd7aa7aaee58cc8fca Mon Sep 17 00:00:00 2001 From: Maxim Date: Sat, 7 Sep 2024 23:38:01 +0300 Subject: [PATCH] Fix rest tests --- .../rest_api/tests/api_validate/test_api_validate_profileId.py | 2 +- .../tests/api_validate/test_api_validate_sha_profileId.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rest_api/tests/api_validate/test_api_validate_profileId.py b/tests/rest_api/tests/api_validate/test_api_validate_profileId.py index a11956c..284e791 100644 --- a/tests/rest_api/tests/api_validate/test_api_validate_profileId.py +++ b/tests/rest_api/tests/api_validate/test_api_validate_profileId.py @@ -87,7 +87,7 @@ def test_api_validate_details_html_check( html = page.content.decode("utf-8") tree = etree.parse(StringIO(html), parser=parser) file = tree.xpath('//*[@id="table1"]//tr[1]//td[2]/text()')[0] - profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/text()')[0] + profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/a[1]/text()')[0] assert file == "a.pdf" assert profile == expected_profile_name diff --git a/tests/rest_api/tests/api_validate/test_api_validate_sha_profileId.py b/tests/rest_api/tests/api_validate/test_api_validate_sha_profileId.py index fd90458..57a8a88 100644 --- a/tests/rest_api/tests/api_validate/test_api_validate_sha_profileId.py +++ b/tests/rest_api/tests/api_validate/test_api_validate_sha_profileId.py @@ -103,7 +103,7 @@ def test_api_validate_sha_profileid_html_check( tree = etree.parse(StringIO(html), parser=parser) file = tree.xpath('//*[@id="table1"]//tr[1]//td[2]/text()')[0] - profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/text()')[0] + profile = tree.xpath('//*[@id="table1"]//tr[2]//td[2]/a[1]/text()')[0] assert file == "a.pdf" assert profile == expected_profile_name