Skip to content

feat: Allow setting minimum AT version from test plan report status dialog #1386

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

Open
wants to merge 13 commits into
base: development
Choose a base branch
from

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Apr 29, 2025

Address #1368

Testing guidelines:

  1. Sign in as an admin
  2. Open the Test Plan Report Status Dialog via the Required Reports button via the interactions on the Test Queue and Data Management pages
    1. From the Test Queue page, expand any of the test plan disclosures and it is available at the top of the expanded view
    2. On Data Management, it is on any of the active phase cells other than R&D
  3. If a row is available to be added to the Test Queue, change the minimum version from the inline dropdown then add to the test queue [screenshot attached]
  4. Observe that the row is added with the selected minimum version saying '{{AT}} {{SELECTED_AT_VERSION}} or later'
  5. Observe that the report with that specified version is now a part of the Test Queue.

screenshot illustrating number 3 from the above list

@howard-e howard-e changed the title Allow setting minimum AT version from test plan report status dialog feat: Allow setting minimum AT version from test plan report status dialog Apr 29, 2025
@howard-e howard-e requested a review from jugglinmike May 5, 2025 21:56
@howard-e howard-e requested a review from ChrisC May 20, 2025 17:14
const {
isRequired,
at,
browser,
minimumAtVersion,
// minimumAtVersion,
Copy link
Contributor

Choose a reason for hiding this comment

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

You can probably just delete this?

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 367c320

Copy link
Contributor

@ChrisC ChrisC left a comment

Choose a reason for hiding this comment

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

I have one question re: failing e2e tests on my local machine, but otherwise this feature is working for me and implementation looks ok!

One UI note that I don't think we need to fix now: I couldn't actually figure out where to pop open the dialog with the updated table because the buttons are not visually distinct or styled as buttons! I basically didn't even know those "Required Reports" buttons were even clickable until you added the steps to test! This might be something we'll want to revisit later?


await page.evaluate(select => {
// Set to VoiceOver 14.0 (At.id is 5 from sample data). Default At.id was 3 (VoiceOver 11.6 (20G165))
select.value = '5';
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the reason this test is failing for me locally. My local db is probably not in the state it needs to be in order for this test to pass, but I'm also wondering why we're not just setting the value to the id of the AT version (for example, for 14.0)... Syncing the values might make for more durable tests and maybe just makes more senes? Is there a reason we're using a separate numbering scheme for the values here?

Screenshot from a test run on my local at the moment where this test fails for me:
Screenshot 2025-05-22 at 12 06 52 PM

Copy link
Contributor Author

@howard-e howard-e May 27, 2025

Choose a reason for hiding this comment

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

Odd! Is it possible you had a conflicting db change here? There doesn't seem to be any seeders that adds VoiceOver 13.0 at least on this branch. The following screenshot of just the v11.6 and v14.0 options are what I get from a fresh hydration of the test db, with value "5" still being for 14.0:

screenshot describing above

Copy link
Contributor Author

@howard-e howard-e May 27, 2025

Choose a reason for hiding this comment

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

@ChrisC merged in main to fix the expected value in 4470f1a. It now shows the same values for me that you shared above

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok now the test is passing locally for me now with this change! Tho I'm still curious about why we're using separate incrementing numbers for the values here as that seems a little brittle. But if it's a local test data sync issue, then maybe the bigger problem is how were setting up and tearing down test data across multiple environments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But if it's a local test data sync issue, then maybe the bigger problem is how were setting up and tearing down test data across multiple environments.

Yep definitely think there's more to discuss in that space

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