Commit Graph

624 Commits

Author SHA1 Message Date
Tessa Kelly
1be6d726ee Fix compilation of OUtline 2023-09-11 15:08:13 -06:00
charbelrami
04b84b2ecb use expectFailure as a helper 2023-09-11 15:30:56 -03:00
charbelrami
4a65db396a add docs and spec for helpfully disabled button 2023-09-11 15:21:22 -03:00
Tessa Kelly
a8f489af48 Shake 2023-09-11 11:47:00 -06:00
Arthur Bernardi Jordão
aacbe93dc8
Merge pull request #1488 from NoRedInk/wr-244-add-new-nriuicarousel-components
Implement new carousel types
2023-09-06 17:43:31 -03:00
Juan Edi
1adf7a0774 add support for custom tab attributes
we anticipate this being needed to properly configure focus rings with
rounded dots
2023-09-06 15:50:28 -03:00
Juan Edi
ce39fdd949 more renames for consistency 2023-09-06 15:45:46 -03:00
Juan Edi
f70f11ea88 keep config field names consistent with TabsInternal 2023-09-06 15:42:45 -03:00
Juan Edi
ba45b75803 more consistent names for returned components 2023-09-06 15:41:41 -03:00
Juan Edi
75acf138c5 merge announceAndSelect + focusAndSelect into a single message handler 2023-09-06 15:00:06 -03:00
Arthur Bernardi Jordão
716d02b424
Remove unneeded attributes from slide 2023-09-06 10:33:17 -03:00
Tessa Kelly
ce917b8908 Adds failing tests -- currently passing no slides leads to a divide by zero error 2023-09-05 16:22:36 -06:00
Tessa Kelly
9eda9536f5 Use Aria helpers for tests 2023-09-05 15:56:53 -06:00
Juan Edi
d039512615 🎨 don't use extensible record for viewWithTabControls
mostly for consistency with the other use cases. changing it helped me
realize we were passing an extra attribute in a test so that's a good
sign I guess!
2023-09-05 15:09:28 -03:00
Juan Edi
79fced51d0 🎨 tidy up a bit
- hoping to make things more readable by replacing a bunch of booleans with a bunch of custom values.
  - rely on built in attribute rather than custom id to identify the root of the carousel
2023-09-05 15:09:28 -03:00
Juan Edi
2f2c527e86 more consistent carousel names in tests 2023-09-05 15:09:28 -03:00
Juan Edi
6366b1e8b8 fix ensureSlideIsVisible selectors
handing the list of selectors to ensureViewHas directly performs
multiple checks, rather than checking that there is a single element
satisfying all conditions.
2023-09-05 15:09:28 -03:00
Arthur Bernardi Jordão
1d4662feb5
Rename accessibleLabel->name 2023-09-05 12:45:01 -03:00
Arthur Bernardi Jordão
0520d52ff1
Add test for aria label on tab controls 2023-09-05 12:36:19 -03:00
Arthur Bernardi Jordão
4bcdff9e09
Add test for aria label on slides 2023-09-05 12:12:43 -03:00
Arthur Bernardi Jordão
f67f40300f
Add test for the aria labels on carousel container 2023-09-05 11:59:05 -03:00
Juan Edi
f192973511 fix tests 2023-09-05 11:29:51 -03:00
Juan Edi
a3fc5e1bc6 make tabs test helpers types more generic
needed to be used in carousel which requires other additional types of interactions
2023-09-05 10:41:58 -03:00
Juan Edi
c0d51483af selectAndAnnounce -> announceAndSelect
for consistency with Tabs' focusAndSelect
2023-09-05 10:07:27 -03:00
Juan Edi
e5ef6fa5fe standarize on "slide" over "panel"
still using "panel" internally when calling TabsInternal, though!
2023-09-05 09:47:38 -03:00
Juan Edi
7a7eeb7fbf test announcements, as much as we can 2023-09-01 17:58:04 -03:00
Juan Edi
ba6740b7b6 change API from focusAndSelect to selectAndAnnounce
we are now building a brief message for the ATAC. this should provide a
nicer UX for screen reader users and also for keyboard users as focus
isn't changed to the slide content after they press the buttongs.
2023-09-01 17:18:30 -03:00
Juan Edi
09ffe59cf7 decouple prev/next tests from TabsInternal helpers 2023-09-01 17:15:17 -03:00
Juan Edi
234a936597 organize tests by Carousel use case 2023-09-01 17:02:06 -03:00
Juan Edi
5dc122ca9c qualify calls to Spec.TabsInternalHelpers
we'll make it so that the non tabbed use case doesn't rely on that
2023-09-01 16:55:50 -03:00
Juan Edi
d4a2609a42 rename config fields that are not view functions anymore
viewPreviousButton -> previousButton
viewNextButton -> nextButton
2023-09-01 16:27:12 -03:00
Arthur Bernardi Jordão
1be3815769
Add tests for carousel with combined controls 2023-09-01 12:54:07 -03:00
Arthur Bernardi Jordão
3627ca16a7
Add test for carousel with prev/next controls 2023-09-01 12:23:10 -03:00
Arthur Bernardi Jordão
565115df6b
Adapt existing tests to v2 2023-08-31 22:59:23 -03:00
Tessa Kelly
2b21d71696 Adds tests against atac content 2023-08-31 11:48:44 -06:00
Tessa Kelly
dadbaf6a73 Extract focus tests into separate describe 2023-08-31 11:45:31 -06:00
Tessa Kelly
4dd90d72bb Adds newly-possible tests against the open and close focus behaviors 2023-08-31 11:44:09 -06:00
Tessa Kelly
2ab3c3a516 Fix compilation of the the modal test 2023-08-31 11:37:59 -06:00
Tessa Kelly
dccfeb5f7e Use Modal.V12 2023-08-31 10:19:18 -06:00
Brian J. Cardiff
a3527cf591
Merge pull request #1476 from NoRedInk/tooltip-prevent-default
Prevent default/stop propagation on Tooltip.disclosure click
2023-08-24 17:54:17 -03:00
Tessa Kelly
eabe6c9bed Adds explicit tests against the checkbox behavior
note that these tests don't actually fail, because the node that they're testing against is in the DOM
2023-08-22 10:51:46 -06:00
Casey Webb
c5511a4a21
elm-reviwe 2023-08-22 10:35:00 -05:00
Casey Webb
ad74f8a786
Remove dead-end test approach 2023-08-22 10:34:02 -05:00
Brian J. Cardiff
cfe53f1afc Assert rendered disclosure tooltip does stopPropagation and preventDefault 2023-08-22 12:20:23 -03:00
Casey Webb
8e8692a354
WIP 2023-08-22 10:05:47 -05:00
Charbel
7c65f46a8a
Merge pull request #1471 from NoRedInk/highlight-hover-style
A11-3441 Prevent applying hover styles after toggling highlight
2023-08-21 18:03:02 -03:00
charbelrami
29a80f4d7a expose Highlighter.V5 module 2023-08-21 16:44:42 -03:00
charbelrami
8c179dc48e create Highlighter.V5, undo changes in V4 2023-08-21 16:39:47 -03:00
Micah Hahn
384e63828e Add width and alignment properties - flush out example page 2023-08-17 16:37:04 -05:00
Tessa
0d4ce06775
Merge pull request #1460 from NoRedInk/tessa/fix-checkbox-guidance-alignment
🔧 Fix checkbox guidance alignment
2023-08-17 08:52:21 -06:00
Micah Hahn
60fbe3b211 Create Mark.V5 2023-08-16 14:17:01 -05:00
Micah Hahn
73c6f68112 Change characterWidth to widthInChars 2023-08-16 09:13:51 -05:00
Micah Hahn
abfe5f525e Merge branch 'master' into phx-880-support-dynamic-blank-block-widths 2023-08-15 16:25:19 -05:00
Micah Hahn
37b277cb80 Update unit tests 2023-08-15 16:14:48 -05:00
Tessa Kelly
d87a897dc0 Fix test 2023-08-15 10:54:19 -06:00
Tessa Kelly
a885497211 Use Switch.V3 2023-08-15 10:54:19 -06:00
Micah Hahn
b5aa1370a6 Pull word ids from V6 2023-08-15 11:51:21 -05:00
Micah Hahn
c9ec219a6c Cerate Block.V6 2023-08-15 11:18:58 -05:00
Juliano Solanho
242b978fb0
Merge pull request #1459 from NoRedInk/tessa/fix-mark-version
🔧 Fix accidental major version change in Mark, adds Mark.V4
2023-08-14 12:07:03 +00:00
Tessa Kelly
9398718e62 Adds missing describedby relationship 2023-08-10 15:39:56 -06:00
Tessa Kelly
49697b2a34 Merge remote-tracking branch 'origin/master' into hack/tessa/auto-expanded-sidenav 2023-08-10 14:58:21 -06:00
Tessa Kelly
b2b5805a93 Fix accidental major version change in Mark 2023-08-10 12:18:54 -06:00
Tessa Kelly
b433937fc1 Elm review 2023-08-08 11:24:22 -06:00
Tessa Kelly
8e80f09b03 test the focus trap 2023-08-08 11:23:56 -06:00
Tessa Kelly
a581f5d462 Adds focus movement from modal title test 2023-08-08 11:14:34 -06:00
Tessa Kelly
dbbcb85e17 Don't start modal open -- we click to open it in the spec 2023-08-08 11:01:22 -06:00
Tessa Kelly
83c2374623 Set up effect pattern for modal tests 2023-08-08 11:00:43 -06:00
Tessa Kelly
7f536bab5d Prep for release 2023-08-08 10:51:32 -06:00
Tessa Kelly
284306fd1f Adds tests, exposing that the custom attributes aren't appropriately added currently 2023-08-04 16:00:40 -06:00
Tessa Kelly
70a6afafc1 Use SideNav.V5 2023-08-04 10:04:24 -06:00
Tessa
b8fa9f3224
Merge pull request #1441 from NoRedInk/zen/guidance-html
Added guidanceHtml
2023-08-03 16:24:38 -06:00
Charbel
28ade31949
Merge pull request #1432 from NoRedInk/message-v4
A11-3081 Create Message V4
2023-08-03 14:25:27 -03:00
Juan Wajnerman
ac8ddb8597
Added guidanceHtml 2023-08-02 17:22:53 -03:00
Tessa Kelly
749366ee90 Merge remote-tracking branch 'origin/master' into bat/prep-for-major-release 2023-08-02 14:00:40 -06:00
Tessa
1d0f740c34
Merge pull request #1430 from NoRedInk/bat/loop-focus
🌟 FocusLoop
2023-08-02 13:59:50 -06:00
Tessa Kelly
2acbbf40ce Adds focus loop to exposed list 2023-07-26 16:54:47 -06:00
Tessa Kelly
2af38e858c Improve the FocusLoop API a bit by making it more general 2023-07-26 16:53:42 -06:00
Tessa Kelly
d83a6aed72 Adds a test against the three element behavior 2023-07-26 16:53:42 -06:00
Tessa Kelly
ac09cb6acd Fix tests 2023-07-26 16:53:42 -06:00
Tessa Kelly
3093d65de4 Adjust the types to allow for wiring up the events the rest of the way 2023-07-26 16:53:42 -06:00
Tessa Kelly
541224c85f Adds failing tests against a two-element list 2023-07-26 16:53:42 -06:00
Tessa Kelly
dca298caa0 Generalize the test set up 2023-07-26 16:53:42 -06:00
Tessa Kelly
bf892417bb Begin setting up tests 2023-07-26 16:53:42 -06:00
Tessa Kelly
cd04afe5bc Elm review 2023-07-26 16:15:25 -06:00
Tessa Kelly
f3a038e188 Adds tabbable False 2023-07-26 15:37:43 -06:00
Tessa Kelly
fc16c6a652 Adds titleId helper 2023-07-26 15:35:39 -06:00
Tessa Kelly
d232afd829 Improve the character API 2023-07-25 17:38:38 -06:00
Tessa Kelly
110c3d3634 Fix test: characters do not render by default anymore 2023-07-25 17:36:15 -06:00
Tessa Kelly
5a7229e683 Shake updates 2023-07-25 17:33:10 -06:00
Tessa Kelly
df4bbd2182 💀 remove Tabs.V7 2023-07-25 17:06:29 -06:00
Tessa Kelly
87427ff418 Fix compilation 2023-07-25 16:47:59 -06:00
Tessa Kelly
3d50da88b3 Add missing QuestionBox version 2023-07-25 16:27:46 -06:00
Tessa Kelly
1bfc76fdd5 💀 remove Highlightable.V2 and Highlighter.V3 2023-07-25 15:48:39 -06:00
charbelrami
3c6f1cf724 expose Message.V4 2023-07-25 18:43:28 -03:00
Tessa Kelly
340a28fede 💀 remove Highlightable.V1 2023-07-25 15:36:56 -06:00
Tessa Kelly
363e5bfe50 Make the test pass 2023-07-20 11:31:34 -06:00
Tessa Kelly
52eeea219b Adds failing test against desired behavior 2023-07-20 11:28:40 -06:00
Alex Perkins
50073d5584
Merge pull request #1412 from NoRedInk/growth/minimalist-tabs
Growth/minimalist tabs
2023-06-30 10:58:25 -06:00
Alex Perkins
8311e39ab6
MinimalTabs -> TabsMinimal how continental 2023-06-23 10:28:22 -06:00
Alex Perkins
8e7f41d5b5
tests! 2023-06-21 18:28:46 -06:00