-
Notifications
You must be signed in to change notification settings - Fork 5
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
EES 5430 - Cancel and Removal of draft API datasets #5170
Conversation
… Added UI test to remove draft API dataset & EES-5432 Added UI test to cancel removing draft API dataset
tests/robot-tests/tests/public_api/public_api_dataset_cancel_and_removal.robot
Outdated
Show resolved
Hide resolved
tests/robot-tests/tests/public_api/public_api_dataset_cancel_and_removal.robot
Show resolved
Hide resolved
tests/robot-tests/tests/public_api/public_api_dataset_cancel_and_removal.robot
Outdated
Show resolved
Hide resolved
tests/robot-tests/tests/public_api/public_api_dataset_cancel_and_removal.robot
Outdated
Show resolved
Hide resolved
user clicks button Create API data set | ||
${modal}= user waits until modal is visible Create a new API data set | ||
user chooses select option id:apiDataSetCreateForm-releaseFileId ${SUBJECT_NAME_1} | ||
user clicks button by index Cancel 3 |
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.
Just noting that I think selecting like this can make the test fragile, as if a new cancel button gets added to the page, this test will break.
But I don't think this is a big deal / worth the time to change, so no need to change this. I'm more just highlighting that we want to make the tests as robust against future changes where feasible. Generally in this situation I'd be inclined to add a way to select a parent element first and then select the cancel button within that parent element.
I can imagine there are reasons for doing it the way you have - like maybe selecting parent elements first is a source of flaky tests.
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.
Done
This PR includes changes for three tickets: EES-5430, EES-5431, and EES-5432.
As part of these tickets, UI tests have been developed based on the following acceptance criteria:
Please note that this PR is dependent on PR The changes in this PR cannot be merged into the dev branch until PR has been successfully merged.