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

[1LP][RFR] - Test to check edit option for existing group #10120

Merged
merged 1 commit into from
May 28, 2020

Conversation

dgaikwad
Copy link
Contributor

Purpose or Intent

PRT Run

{{pytest: cfme/tests/configure/test_access_control.py -k "test_select_edit_group" -v}}

@dgaikwad dgaikwad changed the title [WIPTEST] - Test to check edit option for existing group [RFR] - Test to check edit option for existing group May 18, 2020
# Selecting first row from all group
row = view.table[0]
row[0].check()
assert row[0].checked
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this bit redundant? I think it is browser's job to keep the element checked once it was checked. We don't check these things and take them as granted working.

If there was a problem that this got unchecked by some javascript, then I believe we need some kind of wait + check or periodic checking of the checked state during some time interval anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are done

@dgaikwad dgaikwad changed the title [RFR] - Test to check edit option for existing group [WIPTEST] - Test to check edit option for existing group May 19, 2020
@dgaikwad dgaikwad changed the title [WIPTEST] - Test to check edit option for existing group [RFR] - Test to check edit option for existing group May 19, 2020
@dgaikwad dgaikwad requested a review from jarovo May 19, 2020 11:20
@john-dupuy john-dupuy added the test-automation To be applied on PR's which are automating existing manual cases label May 19, 2020
Copy link
Contributor

@john-dupuy john-dupuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small changes, thanks for this PR!

cfme/tests/configure/test_access_control.py Outdated Show resolved Hide resolved
cfme/tests/configure/test_access_control.py Outdated Show resolved Hide resolved
cfme/tests/configure/test_access_control.py Outdated Show resolved Hide resolved
failure_patterns=[msg]).waiting(timeout=120):

# Selecting first row from all group
row = view.table[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring description and the testSteps and expectedResults sections indicate that the test should be for a custom group, and that the option is called 'Edit Group'. But the test clicks on the first group in the list of all groups, which is probably going to be the default group EvmGroup-administrator, not a custom group, and the option is 'Edit the selected Group'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring description and expectedResults are still wrong:

Should be able to see "edit group" option for existing group after selecting the group

and

2. Able to see Edit Group option

The option is Edit the selected Group, not edit group or Edit Group.

@dgaikwad dgaikwad changed the title [RFR] - Test to check edit option for existing group [WIPTEST] - Test to check edit option for existing group May 20, 2020
@john-dupuy john-dupuy changed the title [WIPTEST] - Test to check edit option for existing group [1LP][WIPTEST] - Test to check edit option for existing group May 20, 2020
@dgaikwad dgaikwad changed the title [1LP][WIPTEST] - Test to check edit option for existing group [1LP][RFR] - Test to check edit option for existing group May 20, 2020
@dgaikwad dgaikwad changed the title [1LP][RFR] - Test to check edit option for existing group [1LP][WIPTEST] - Test to check edit option for existing group May 20, 2020
@dgaikwad dgaikwad changed the title [1LP][WIPTEST] - Test to check edit option for existing group [1LP][RFR] - Test to check edit option for existing group May 21, 2020
@dgaikwad dgaikwad changed the title [1LP][RFR] - Test to check edit option for existing group [1LP][WIPTEST] - Test to check edit option for existing group May 22, 2020
@dajoRH dajoRH changed the title [1LP][WIPTEST] - Test to check edit option for existing group [1LP][WIP] - Test to check edit option for existing group May 22, 2020
@dgaikwad dgaikwad changed the title [1LP][WIP] - Test to check edit option for existing group [1LP][WIPTEST] - Test to check edit option for existing group May 22, 2020
@dajoRH dajoRH added lint-ok and removed needs-lint labels May 22, 2020
@dgaikwad dgaikwad changed the title [1LP][WIPTEST] - Test to check edit option for existing group [1LP][RFR] - Test to check edit option for existing group May 22, 2020
@mshriver mshriver merged commit 7a68163 into ManageIQ:master May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lint-ok 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.

6 participants