Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Automate: test_provider_documentation #9769

Merged
merged 2 commits into from
Jan 24, 2020

Conversation

valaparthvi
Copy link
Contributor

Purpose or Intent

  • Adding tests
    1. test_provider_documentation and remove it's manual test.
  • Enhancement
    1. Enhance ConfigManagementCollectionView and ConfigManagementView views is_displayed to work for navigation through AnsibleTowerProvider and SatelliteProvider class.
    2. Add data/ui/provider_docs.yaml

PRT Run

{{ pytest: cfme/tests/webui/test_general_ui.py -k "test_provider_documentation" -vvv }}

@valaparthvi valaparthvi added enhancement test-automation To be applied on PR's which are automating existing manual cases tech-debt labels Dec 16, 2019
@valaparthvi valaparthvi changed the title [WIPTEST] Automate: test_provider_documentation [RFR] Automate: test_provider_documentation Dec 17, 2019
@dajoRH dajoRH added the lint-ok label Dec 17, 2019
@dajoRH dajoRH changed the title [RFR] Automate: test_provider_documentation [WIP] Automate: test_provider_documentation Dec 19, 2019
@valaparthvi valaparthvi changed the title [WIP] Automate: test_provider_documentation [WIPTEST] Automate: test_provider_documentation Dec 19, 2019
@valaparthvi valaparthvi changed the title [WIPTEST] Automate: test_provider_documentation [RFR] Automate: test_provider_documentation Dec 19, 2019
@valaparthvi valaparthvi force-pushed the provider_doc branch 3 times, most recently from 6286181 to eae5f9a Compare December 20, 2019 13:31
@ganeshhubale
Copy link
Member

Please have a look at 5.11 PRT failures.

@ganeshhubale ganeshhubale changed the title [RFR] Automate: test_provider_documentation [WIPTEST] Automate: test_provider_documentation Dec 24, 2019
@dajoRH dajoRH changed the title [WIPTEST] Automate: test_provider_documentation [WIP] Automate: test_provider_documentation Jan 14, 2020
@valaparthvi valaparthvi changed the title [WIP] Automate: test_provider_documentation [WIPTEST] Automate: test_provider_documentation Jan 21, 2020
@dajoRH dajoRH added WIP-testing and removed WIP labels Jan 21, 2020
@valaparthvi valaparthvi changed the title [WIPTEST] Automate: test_provider_documentation [RFR] Automate: test_provider_documentation Jan 21, 2020
@valaparthvi valaparthvi requested review from digitronik and removed request for digitronik January 21, 2020 09:28

# 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
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

@ganeshhubale ganeshhubale changed the title [RFR] Automate: test_provider_documentation [1LP][RFR] Automate: test_provider_documentation Jan 22, 2020
@@ -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")
Copy link
Member

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(
Copy link
Member

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.

@mshriver mshriver merged commit a0ee787 into ManageIQ:master Jan 24, 2020
spusateri pushed a commit to spusateri/integration_tests that referenced this pull request Jan 27, 2020
* Automate: test_provider_documentation

* Use temp_appliance_preconfig incase of failures
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement lint-ok tech-debt test-automation To be applied on PR's which are automating existing manual cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants