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

Allow test data toggle to be clicked #7479

Merged
merged 7 commits into from
Feb 28, 2024
Merged

Conversation

shefalijoshi
Copy link
Contributor

@shefalijoshi shefalijoshi commented Feb 6, 2024

Closes #7424

Describe your changes:

Add the disabled class instead of the disabled attribute
Add aria labels for drop downs and inputs

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Is this a breaking change to be called out in the release notes?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 55.21%. Comparing base (dc9bd8b) to head (edf89fb).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7479      +/-   ##
==========================================
- Coverage   55.48%   55.21%   -0.27%     
==========================================
  Files         672      672              
  Lines       26961    26961              
  Branches     2620     2620              
==========================================
- Hits        14958    14887      -71     
- Misses      11286    11354      +68     
- Partials      717      720       +3     
Flag Coverage Δ
e2e-full 21.69% <ø> (-19.86%) ⬇️
e2e-stable 59.59% <ø> (+0.30%) ⬆️
unit 48.48% <0.00%> (-0.05%) ⬇️
Files Coverage Δ
src/plugins/condition/components/TestData.vue 0.00% <0.00%> (ø)

... and 15 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc9bd8b...edf89fb. Read the comment docs.

test('ConditionSet has correct outputs when test data is enabled', async ({ page }) => {
const exampleTelemetry = await createExampleTelemetryObject(page);

await page.getByTitle('Show selected item in tree').click();
Copy link
Collaborator

Choose a reason for hiding this comment

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

this isn't possible to do with linting, but we cannot use .getByTitle since title's aren't compatible with screen readers or on mobile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm. We're doing this everywhere in our tests. Perhaps it needs a separate PR to change it in one go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually I've just done that in this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

They just added a linting rule for us to get away from this

@@ -136,6 +145,15 @@ export default {
telemetryMetadataOptions: {}
};
},
computed: {
testDataClass() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@charlesh88 can you check to see that this is how we want to do this disabled

@scottbell scottbell self-requested a review February 7, 2024 20:01
Copy link
Contributor

@scottbell scottbell left a comment

Choose a reason for hiding this comment

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

Had a code style comment, but functionality seems to work.

Before:
before

After:

after.mov

@unlikelyzero unlikelyzero added this to the Target:4.0.0 milestone Feb 8, 2024
@unlikelyzero unlikelyzero added the type:maintenance tests, chores, or project maintenance label Feb 8, 2024
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Feb 27, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Feb 27, 2024
@shefalijoshi shefalijoshi enabled auto-merge (squash) February 28, 2024 19:35
@shefalijoshi shefalijoshi merged commit 7d25c96 into master Feb 28, 2024
25 of 28 checks passed
@shefalijoshi shefalijoshi deleted the fix-conditionset-test-data branch February 28, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:maintenance tests, chores, or project maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Condition Sets] "Apply Test Data" doesn't work anymore
4 participants