-
Notifications
You must be signed in to change notification settings - Fork 5
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
create a grunt task to compare PDOM descriptions #138
Comments
Notes from discussion:
|
The notes in #138 (comment) illustrate that we discussed comparing PDOM from working copy against a given date of project by SHA. This way, we aren't locked into a single PDOM defined at publication time and we don't compare against master which would make it easy to miss things. |
@twant and I worked on this today. We were able to get very far on testing the current working copy (even with unstashed changes) against a previous sim commit. given this working copy change in And this command, where the sha is most recent commit in gravity-force-lab-basics: We were able to see this output in git bash: The next steps are marked as todos in the file, but here is what I think should be worked on and noted:
|
This task was breaking a MR that @chrisklus was working on, because checkout-master-all was unable to load the chipper |
While working on phetsims/tasks#1017, I discovered that this apparently has introduced a dependency on chipper in perennial. In perennial.PDOMComparison.js: const getPhetLibs = require( '../../../chipper/js/grunt/getPhetLibs' );
...
// TODO: perennial shouldn't depend on chipper, https://github.com/phetsims/perennial/issues/138
const dependencies = getPhetLibs( repo ); And this dependency has existed since 7/29/19. That seems potentially very bad, and should be addressed immediately, no? Assigning to @zepumph and labeling for developer meeting. And perhaps another question is why does PDOMComparsion.js live in perennial? |
This issue is for an experimental grunt task that isn't currently used. There is a dependencies getter in perennial that I was able to use instead of calling over to chipper. Thanks for the poke on the TODO. |
Keeping labelled for dev meeting in case @pixelzoom had other thoughts beyond fixing the issue in master. |
The dependency on chipper was removed above, after discussing in dev meeting, nothing else is needed to be done here for that problem. |
Over in friction, I'm about to tear up some PDOM descriptions to help support voicing. It would be just excellent if we could get something here working to support that effort. I would want to know if there were any problems I was creating earlier rather than later. I think that my first idea above was a good one, but I didn't really know about the snapshot comparison tool, which is already pretty well set up to make comparisons with pixels. Perhaps I could add a module to it to also compare the PDOM HTML and perhaps some sort of serialization of alerts too (description and voicing while we're at it). |
This issue was first about a grunt task. I'd rather create a new issue for experimenting with snapshot comparison, so I'll pick this up in phetsims/aqua#127. If things go well. I'll delete the grunt task and close this issue. |
phetsims/aqua#127 is totally the way of the future. After giving @jessegreenberg a tour, I am ready to give up on this old strategy. |
Removed above. Closing |
From a11y dev meeting today with @jessegreenberg, we were interested in prototyping around with a way to test description comparisons between two versions. We worked on a prototype today, and got to a commit point where we can compare the PDOMs on startup of working copy sim with the same from master (using
git stash
ing). This is working, but there are some pretty big todos to think about before diving fully in. Let's talk more about this @jessegreenberg!The text was updated successfully, but these errors were encountered: