Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UI tests #875

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion testsuite/tests/ui/oas/test_api_key_autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def api_doc_page(login, navigator, ui_active_doc, request, custom_admin_login):
"""Custom doc page for developer portal"""
view = navigator.navigate(CMSNewPageView)
page_name = blame(request, "CustomDocumentation")
page_path = blame(request, "apidocs")
mastastny marked this conversation as resolved.
Show resolved Hide resolved
page_path = blame(request, "/apidocs")

view.create(
page_name,
Expand Down
2 changes: 1 addition & 1 deletion testsuite/tests/ui/oas/test_multiple_oas_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def multiple_api_doc_page(login, navigator, oas3_one_spec, oas3_two_spec, reques
"""Custom doc page for developer portal"""
view = navigator.navigate(CMSNewPageView)
page_name = blame(request, "Multiple OAS docs")
page_path = blame(request, "multiple_oas")
page_path = blame(request, "/multiple_oas")

view.create(
page_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def test_tls_terminology_policy_content(navigator, policy_service):
assert tls_policy_view.local_cert_key.is_displayed

tls_policy_view.cert_type_select.select_by_value("1")
assert tls_policy_view.embedded_cert_path.is_displayed
assert tls_policy_view.embedded_cert_key_path.is_displayed
assert tls_policy_view.embedded_cert.is_displayed
assert tls_policy_view.embedded_cert_key.is_displayed

tls_policy_view.cert_type_select.select_by_value("0")
assert tls_policy_view.local_cert_key.is_displayed
Expand Down
8 changes: 4 additions & 4 deletions testsuite/ui/views/admin/product/integration/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class TlsTerminationPolicyView(View):
add_cert_btn = Button(locator=".//button[contains(@class, 'btn-add')]")
local_cert_key = FileInput(id="root_certificate_key_path")
local_cert = FileInput(id="root_certificate_path")
embedded_cert_path = TextInput(id="root_certificate")
embedded_cert_key_path = TextInput(id="root_certificate_key")
embedded_cert = FileInput(id="root_certificate")
embedded_cert_key = FileInput(id="root_certificate_key")
update_policy_btn = Button(locator=".//button[text()='Update Policy']")
cert_type_select = ThreescaleDropdown('//*[@id="root_certificates_0_anyof_select"]')

Expand All @@ -67,8 +67,8 @@ def add_embedded_certs(self, certificate: Certificate):
"""Adds certs from filesystem"""
self.add_cert_btn.click()
self.cert_type_select.select_by_value("1")
self.embedded_cert_path.fill(certificate.files["certificate"])
self.embedded_cert_key_path.fill(certificate.files["key"])
self.embedded_cert.fill(certificate.files["certificate"])
self.embedded_cert_key.fill(certificate.files["key"])
self.update_policy_btn.click()

@property
Expand Down
Loading