GPII-3619: Convert universal tests to use CouchDB instead of PouchDB.#728
GPII-3619: Convert universal tests to use CouchDB instead of PouchDB.#728amb26 merged 79 commits intoGPII:masterfrom
Conversation
…cks into launch handler block. Removed duplicate capability definition after review of logs.
…ommon->JAWS settings.
…s and disabled TypingEcho, as it is known to cause problems.
…opefully avoid cross-pollenating data when values are unset.
… Fixed typo in TextViewerFontFaceName inverse capability transform.
# Conflicts: # gpii/node_modules/testing/src/TestUtils.js # tests/UntrustedUserLogonRequestTests.js
There was a problem hiding this comment.
What do you mean by "we shouldn't use gradeNames"?
There was a problem hiding this comment.
No idea, I didn't write that, I just moved it. Here it is in master.
There was a problem hiding this comment.
Happy to bin it if it doesn't seem like a useful note for the future.
There was a problem hiding this comment.
Yes, please bin - we can consider whatever intent was behind the comment is enacted moving to sequence grades
There was a problem hiding this comment.
Done, will commit once I fix the broken prefs server tests.
| debounceTimeoutComplete: null | ||
| }, | ||
| expectedModelChanges: { | ||
| proximityTriggeredLogon: [ |
There was a problem hiding this comment.
I think this model makes a lot more sense
There was a problem hiding this comment.
I'm glad, I was shooting for something clearer and reliable.
tests/shared/DevelopmentTestDefs.js
Outdated
There was a problem hiding this comment.
Thanks, that was left over from a fairly serious goof with a broken environment where that grade was required.
| listener: "fluid.identity" | ||
| } | ||
| ] | ||
| { |
There was a problem hiding this comment.
Any chance we could lose the massive formatting diffs in this file?
There was a problem hiding this comment.
As stated above, I really really dislike not indenting multi-element arrays, and indenting them more cleanly made it easier to do the review work required for this pull. I think of it as something akin to alphabetising a previously unordered list of solutions registry entries. It made it easier to perform the work in question today, and hopefully will make it easier to maintain things in the future, even if it does bloat the pull.
There was a problem hiding this comment.
In follow up work I have noticed additional small multi-element arrays and left them alone for now.
tests/PSPIntegrationTests.js
Outdated
|
All of my "done" and "fixed" comments above are pending a local test run and will soon be committed. |
|
Rather than doing a double tap, I decided to commit so that my changes were visible, and then look at the results in CI. |
|
CI job failed: https://ci.gpii.net/job/universal-tests/1543/ |
|
Looks like the commented out configurations in the preferences server tests are actually broken, fixing those now. |
…un without a db. Commented out because of bug revealed.
|
I fixed one of the commented out tests easily enough, but I ended up uncovering a bug with the "without db" variants that I wrote up as GPII-3733. Those tests are commented out for now. |
|
CI job passed: https://ci.gpii.net/job/universal-tests/1546/ |
There was a problem hiding this comment.
It's aligned in the way I often do, and is consistent with itself, but I see that the rest of the test defs follow another style. I'll change it.
|
Please do a search throughout the project for "Pouch" and remove all stray references - I find 29 still remaining |
|
Sorry, I think my last search for all references to "pouch" may have either been case-sensitive or otherwise incomplete. Will fix it now. |
|
@amb26, this should be ready to review again. |
|
CI job failed: https://ci.gpii.net/job/universal-tests/1548/ |
|
Looks like the merge with upstream brought in "new old world" tests that I need to quickly update:
|
…pii.test.runCouchTestDefs` method.
|
CI job passed: https://ci.gpii.net/job/universal-tests/1549/ |
Replaces all node-side usages of PouchDB with gpii-couchdb-test-harness. See GPII-3619 for details. Fixes bugs discovered in using CouchDB for the tests, such as GPII-3628.
Also replaces a lot of legacy test-building code with modern sequence elements and grades.