-
Notifications
You must be signed in to change notification settings - Fork 30
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
Breadcrumb test plan has many commands with invalid key references #537
Comments
@mzgoddard I'm going to need some clarification here. It was decided many months ago that the test format would be updated to support command arrays (#363). Such support was then implemented in PR #438, which was merged many months ago. The comma-separated commands in quotes should be split, and each treated as a command look-up in the keys file. Is that not the case? |
Ah, yes. That is there. For the code merged in #438, the beginning and ending double quotation mark from Along with removing the quotes from the breadcrumb test plan |
Sorry, I'm still confused. If we removed the quotes, the commas would be treated as column separators, because it's a CSV file. I.e. it would be three commands, not three repeated presses of Down Arrow to form a single one. Looking at
I thought that was the point of #438? Are you saying that the support for command sequences only applies to the generated JSON files, that nobody ever creates by hand, and that the automated pipeline can't actually create that structure in the first place? |
Update: the triple quotes in this |
Quotes are used in a kind of unique way in csv files. To remove the beginning and ending double quote characters that the test generation script sees in the
I reviewed the logic in the test generation and currently that is correct. It doesn't split a command containing commas before looking them up. I'm not sure if something slipped by us for this or if another PR added it and it got removed for another reason such as being part of a revert. |
@mzgoddard Thanks, this was supr helpful. No quotes in Excel seems obvious now, given that it's a single cell, and the program should/does just do the right thing when exporting. On the second part, re: support for command sequences not actually being implemented in a usable way after all, that is disappointing, and will have a major impact on the test plans we've been writing. Since the relevant PR was merged, we've been writing all of our tests to comply with what we believed was the new spec, and also have some time carved out to revisit older plans which use different messaging. I've reopened #363, because it currently can't be considered fixed. Do you have thoughts on how this work can be prioritised to support the tests as written, and when someone may be able to look at completing the implementation? CC @sinabahram / @s3ththompson / @richnoah |
I've fixed the quoting in #540. |
@mzgoddard Looking into this a bit more, I'm not sure why you think it's an issue. Looking at the Test plan review for Breadcrumb, the command sequences seem to be rendered as expected. E.g. for test 1, Navigate to the first breadcrumb link in reading mode, the page states:
Granted, I think the wording could be better when there are three or more instances of the same command in a sequence. But that's pretty much how it was declared to be working in #438. They also seem to be working fine for the slider test plan that I just merged. |
I dunno, I'm just confused @mzgoddard. I've worked on a few test plans across pull requests today, and in all cases the checks were successful. Similarly, in all cases I merged master into the working branch before pushing. But as shown in https://github.com/w3c/aria-at/runs/3985448927?check_suite_focus=true, there are failures all over the place, including in those test plans that I've merged that were previously reported as having no failures. In essence,, it seems like whether or not the build process communicates errors (or exits with a specific code) is completely inconsistent, which makes it impossible to develop tests with any degree of confidence. I'm going to leave it until I hear more from the Bocoup side. |
In PR #487, I fixed some legitimate test plan errors, i.e. mismatched task names across commands.csv and tests.csv. Those errors were in the ratings slider plan, introduced in PR #486. I merged that earlier PR, because it reported "5 / 5 checks OK" (as you can still see on the page). But after merging master into the newer PR for the temperature slider and pushing, all of a sudden the ratings slider test plan won't build. |
Per a recent conversation with @jscholes and @mzgoddard, the plan to address this issue is as follows:
|
Breadcrumb test plan has many commands with invalid key references. Some of these are just keys missing in
keys.mjs
, but some others like"DOWN,DOWN,DOWN"
surrounded by quotes and containing commas, in this format cannot be added tokeys.mjs
. Key reference names currently need to be valid javascript variable names because of how they are stored inkeys.mjs
."DOWN,DOWN,DOWN"
could be renamed to something likeDOWN_DOWN_DOWN
without quotes and replacing the commas with underscores.#536 has been opened to help make this more obvious during pull request review of test plan changes.
Breadcrumb errors from test generation:
The text was updated successfully, but these errors were encountered: