-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Automate: test_provider_documentation #9769
Conversation
577f41f
to
41e1407
Compare
41e1407
to
471124d
Compare
6286181
to
eae5f9a
Compare
Please have a look at 5.11 PRT failures. |
eae5f9a
to
b14ed27
Compare
b14ed27
to
21dafc4
Compare
|
||
# TODO: Remove this once `ensure_page_safe()` is equipped to handle WebDriverException | ||
# When a new window opens, URL takes time to load, this will act as a workaround. | ||
import time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we wait for something here instead of sleep.
view.wait_for_something() in UI ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, I have tried everything I could think of, it's not possible to use wait_for
here, time.sleep
is the best way right now.
@@ -567,6 +581,67 @@ def test_infrastructure_provider_left_panel_titles( | |||
soft_assert(test_view.is_displayed, f"{test_view} not displayed.") | |||
|
|||
|
|||
@pytest.mark.tier(1) | |||
@pytest.mark.ignore_stream("5.10") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be ignored on upstream builds as well, since we're using an access.redhat.com URL.
Why only run against CFME 5.11?
initial_count = len(view.browser.window_handles) | ||
main_window = view.browser.current_window_handle | ||
|
||
href = Text( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider defining a widget on the Provider view instead of just putting this in the test.
* Automate: test_provider_documentation * Use temp_appliance_preconfig incase of failures
Purpose or Intent
test_provider_documentation
and remove it's manual test.ConfigManagementCollectionView
andConfigManagementView
viewsis_displayed
to work for navigation throughAnsibleTowerProvider
andSatelliteProvider
class.data/ui/provider_docs.yaml
PRT Run
{{ pytest: cfme/tests/webui/test_general_ui.py -k "test_provider_documentation" -vvv }}