-
Notifications
You must be signed in to change notification settings - Fork 149
Add title attribute to default UI input for access #798
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
Conversation
Alright, back at the old helm ⎈ ☸️ Build issues, starting with code changes… resolver + editionresolver = "2" Silences these warnings:
I chose More info:
build playgroundUpdated Contributing.md to include build step for Playground, introduced since last release: Fixes cascading errors from pagefind/src/playground.rs when it is not already built for
charabia > lindera > lindera-unidicI was not able to solve this issue and was forced to use cargo build --release --features extended
From what I was able to determine, this issue triggers when Charabia gets included there and depends on Lindera which depends on lindera-unidic, and tries to link to LMK if I am clear to do bump to 0.9.3 from 0.8.8 here on L52 of pagefind/Cargo.toml, or if you want that separately. This is already long, so will add notes on build browser testing in a separate comment. |
Back again, new and improved, for build browser testing notes. Here is my experience opening this PR, and some ideas for expanding the “Test suite” section of CONTRIBUTING.md. As instructed, I ran:
then screenfuls of errors like this first one:
This turns out to be because toolproof uses chromiumoxide and its
You may realize then that you stopped installing Google Chrome in 2020, and that seemingly testing pagefind has an unspecified dependency on Headless Chrome being on the system, which started shipping alongside Chrome in v59 and got a big update in Chrome 112. Deeply discouraged, but still even more enthusiastic to contribute to this outstanding project, you end up choosing Headless Chromium and its “precompiled After locating the export CHROME="/Users/your-user-name-goes-here/Applications/chrome-headless-shell-mac-arm64/chrome-headless-shell" You can check if the environment variable is set with the Finally, you will be able to run the tests, however, the first time it runs you will probably have to bypass Gatekeeper. If a security alert reading:
Try these steps:
You may need to click Done, probably several times, and/or rerun the Once you see the alert, go to System Settings and Allow Anyway. You may then see yet another security alert:
And need to click Open Anyway. Even after than, when 206 of 209 tests ran for me, 3 tests failed every time: […]
[…]
[…]
[…]
[…]
[…]
[…]
To get those 3 failing tests to pass, you will need to bypass Gatekeeper for these three linked binaries as well:
Until you do, you will see security alerts each time you run
and need to click Done, probably several times. Once you see the alert, go to System Settings like you did before for chrome-headless-shell, and Allow Anyway for each one. You may see yet another security alert:
And need to click Open Anyway for each, like you did for chrome-headless-shell. |
👋 @rdela — catching up here finally. Change looks good 🙂 Addressing comments: resolver + editionAll looks good here! build playgroundLikewise! charabia > lindera > lindera-unidicYou're clear to bump Charabia in this PR :) I see that is failing our CI builds as well, so much appreciated for doing the investigation work ❤️ Sisyphean browser testing adventureSorry that this was such a mission to get going! This is one reason we haven't yet pushed Toolproof more broadly. For now, I might just link off to this comment from the docs for users who need to go down the direct headless_shell install path. Medium term, I'd like to support a pathway to using a Firefox install. (Useful also for ensuring cross-browser support). And longer term, we'd like to round out the nascent https://github.com/CloudCannon/pagebrowse — which wraps https://github.com/tauri-apps/wry to provide a puppeteer-like interface over a system webview rather than a full browser. Toolproof actually supports a small subset of the steps already with Thanks again for jumping in! I'll wait til you've had a chance to bump Charabia and have the extended tests pass, then we can merge. |
Alright I bumped
runs smoothly at last, and we also are all green on all 209 tests on my end |
This all sounds great, I should have known you have something even more marvelous in store. Happy to help however I can❣️ |
Thanks @rdela ! Sorry for the slow merge turnaround on this 😅 |
Thank you! Understand completely, I have been out of band/away from keyboard since you merged this. Huzzah!! Hooray accessibility and placehoders :) |
See #727
This addresses the first part of that issue, adding
title
attribute to default UI input for accessibility that matches theplaceholder
.Had quite the adventure getting this to build, will document that and changes I made to suppress errors soon, but taking a break to eat.