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

Infrastructure: Add missing test for 6 examples #1424

Merged
merged 10 commits into from
Nov 8, 2020

Conversation

spectranaut
Copy link
Contributor

@spectranaut spectranaut commented Jun 12, 2020

#1378

This PR adds tests for:

  • the button idl example
  • Fixes some references in the combobox grid text file
  • Adds some missing tests for the rest of the combobox tests
  • Adds the missing keyboard interaction tests to the spin button date picker

@nschonni
Copy link
Contributor

@spectranaut it would be good to rebase this one to see how the regression test comment job handles this one

@spectranaut spectranaut force-pushed the issue1378-add-missing-tests branch from 644eaef to 4be7896 Compare October 9, 2020 15:48
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2020

Regression test coverage:

Examples without any regression tests:

  • dialog-modal/alertdialog.html

Examples missing some regression tests:

  • dialog-modal/datepicker-dialog.html:
    • textbox-aria-describedby
  • menu-button/menu-button-actions-active-descendant.html:
    • menu-up-arrow
    • menu-down-arrow
    • menu-character
  • toolbar/toolbar.html:
    • toolbar-tab
    • toolbar-right-arrow
    • toolbar-left-arrow
    • toolbar-home
    • toolbar-end
    • toolbar-toggle-esc
    • toolbar-toggle-enter-or-space
    • toolbar-radio-enter-or-space
    • toolbar-radio-down-arrow
    • toolbar-radio-up-arrow
    • toolbar-button-enter-or-space
    • toolbar-menubutton-enter-or-space-or-down-or-up
    • toolbar-menu-enter-or-space
    • toolbar-menu-down-arrow
    • toolbar-menu-up-arrow
    • toolbar-menu-escape
    • toolbar-spinbutton-down-arrow
    • toolbar-spinbutton-up-arrow
    • toolbar-spinbutton-page-down
    • toolbar-spinbutton-page-up
    • toolbar-checkbox-space
    • toolbar-link-enter-or-space
    • toolbar-aria-controls
    • toolbar-button-aria-pressed
    • toolbar-button-aria-hidden
    • toolbar-radiogroup-role
    • toolbar-radiogroup-aria-label
    • toolbar-radio-role
    • toolbar-radio-aria-checked
    • toolbar-radio-aria-hidden
    • toolbar-button-aria-disabled
    • toolbar-menubutton-aria-label
    • toolbar-menubutton-aria-haspopup
    • toolbar-menubutton-aria-controls
    • toolbar-menubutton-aria-expanded
    • toolbar-menu-role
    • toolbar-menu-aria-label
    • toolbar-menuitemradio-role
    • toolbar-menuitemradio-aria-checked
    • toolbar-menuitemradio-tabindex
    • toolbar-spinbutton-role
    • toolbar-spinbutton-aria-label
    • toolbar-spinbutton-aria-valuenow
    • toolbar-spinbutton-aria-valuetext
    • toolbar-spinbutton-aria-valuemin
    • toolbar-spinbutton-aria-valuemax

Example pages with Keyboard or Attribute table rows that do not have data-test-ids:

  • dialog-modal/alertdialog.html
    • "Keyboard Support" table(s):
      • Tab
      • Shift + Tab
      • Escape
      • Command + S
      • Control + S
    • "Attributes" table(s):
      • alertdialog
      • aria-labelledby=IDREF
      • aria-describedby=IDREF
      • aria-modal=true
      • alert

SUMMARY:

55 example pages found.
1 example pages have no regression tests.
3 example pages are missing approximately 50 out of approximately 781 tests.

ERROR - missing tests:

Please write missing tests for this report to pass.

@spectranaut
Copy link
Contributor Author

@jongund, any chance you could code review this PR? It would be nice to get the missing tests down to zero :)

@nschonni
Copy link
Contributor

@spectranaut looks like the prettier stuff caused some conflicts

@jongund
Copy link
Contributor

jongund commented Oct 29, 2020

@spectranaut

Valarie, did you add the missing tests or just reformat the existing test files to use "prettier"?

@spectranaut
Copy link
Contributor Author

Valarie, did you add the missing tests or just reformat the existing test files to use "prettier"?

@jongund I wrote some tests! I'm not sure why I have a failure on the PR for the js linter though.

@nschonni
Copy link
Contributor

@spectranaut there are some in-line comments on the file tab around 'use strict' is unnecessary inside of modules for the linting failures

@spectranaut
Copy link
Contributor Author

@nschonni yeah I'm a bit baffled by them, there aren't errors for the use of "no strict" in other files, I can't replicate locally...

@nschonni
Copy link
Contributor

They got removed with #1566
I'm guessing you might need to rebase and/or maybe re-run npm ci locally

@jongund
Copy link
Contributor

jongund commented Oct 29, 2020

@nschonni yeah I'm a bit baffled by them, there aren't errors for the use of "no strict" in other files, I can't replicate locally...

I have had this problem with 'strict' in the past too, I don't remember how I fixed it.

@spectranaut spectranaut force-pushed the issue1378-add-missing-tests branch from 756a9b9 to 2be3fcf Compare October 29, 2020 21:11
@nschonni
Copy link
Contributor

OK, tested it out locally:

  • checkout locally and run npm ci. npm run fix had no changes or errors
  • checkout locally, rebase with master, and run npm ci. npm run fix updated the 2 flagged files

I think the checkout for CI is using the merge commit onto main, so that's why it's showing the errors there and not with just the local branch merge

@spectranaut
Copy link
Contributor Author

spectranaut commented Oct 29, 2020

@nschonni I think we did a little duplicate work, but thanks for look into it :) I rebased and fixed and force pushed and the linter now passes. Looking into the regression test failure now.

@spectranaut
Copy link
Contributor Author

spectranaut commented Oct 29, 2020

Ok I'm a bit confused by the regression test failures. It's a time out waiting for a link when testing "key enter" on the link apg example -- which is code this PR does not touch. We have seen this error before and guessed it had to do with the travis check environment's resources in some case, or sending to many requests to wikipedia in another case. I tried testing just link over on the bocoup branch (bocoup#43) with some console logs to try to get a better sense of what is happening, and it failed on time and passed the next.

Anyway, on the most recent run off all the checks it passes. I'm going to open a backlog issue to track these link related failures in case they come up again.

@nschonni
Copy link
Contributor

Maybe another 429 response code like the wikipedia ones for the tab tests before?

Copy link

@rwaldron rwaldron left a comment

Choose a reason for hiding this comment

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

I was asked (by @spectranaut) to provide a peer review to help move this forward. I've read through all of the changes here and nothing stands out. When I tested locally, I experienced one test failure that was distinct from failures I experienced when running the test from the master branch, and which is only reproducible on my local machine. I don't consider this a blocking issue.

I've followed the review guidelines and have determined that this work satisfies all of the criteria laid out in that document.

(I'd like to acknowledge that I do not have the same level of familiarity with the project as the regular contributors)

const ex = {
printSelector: '#action',
toggleSelector: '#toggle',
svg: '#example svg',
Copy link

Choose a reason for hiding this comment

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

For consistency, I believe this should be named svgSelector?

@jongund
Copy link
Contributor

jongund commented Nov 6, 2020

@rwaldron
Thank you for the feedback, but right now I am focused on finishing up some other ARIA example test cases, but when I get to toolbar I will review your comments.

@spectranaut
Copy link
Contributor Author

Thanks @rwaldron ! I adopted your feedback, including simplifying one test that remove the failure you got when you run it locally.

@spectranaut
Copy link
Contributor Author

The failing test is due to the flaky link tests currently being fixed in #1600

@mcking65 mcking65 changed the title Write missing tests Infrastructure: Add missing test for 6 examples Nov 8, 2020
@mcking65 mcking65 merged commit 1b2ae58 into master Nov 8, 2020
@mcking65 mcking65 deleted the issue1378-add-missing-tests branch November 9, 2020 00:59
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.

Missing regression tests for button/button_idl.html and dialog-modal/alertdialog.html
5 participants