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

EES 5430 - Cancel and Removal of draft API datasets #5170

Merged
merged 8 commits into from
Aug 30, 2024
Merged

Conversation

saicharan2789
Copy link
Collaborator

@saicharan2789 saicharan2789 commented Aug 22, 2024

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:

  • Users have the ability to cancel while creating new API datasets.
  • Users have the ability to remove draft API datasets.
  • Users have the ability to cancel while removing draft API datasets.

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.

… Added UI test to remove draft API dataset & EES-5432 Added UI test to cancel removing draft API dataset
@saicharan2789
Copy link
Collaborator Author

image

@saicharan2789 saicharan2789 changed the title Ees 5430 EES 5430 - Cancel and Removal of draft API datasets Aug 22, 2024
@saicharan2789 saicharan2789 marked this pull request as ready for review August 22, 2024 12:15
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
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@saicharan2789 saicharan2789 merged commit 0d05a43 into dev Aug 30, 2024
7 checks passed
@saicharan2789 saicharan2789 deleted the EES-5430 branch August 30, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants