Commit Graph

586 Commits

Author SHA1 Message Date
Casey Webb
7d9447e2c1
Add tests for FocusLoop.view 2023-09-20 17:15:49 -05:00
Casey Webb
9e26acd55b
Don't loop for singleton 2023-09-20 17:15:48 -05:00
Casey Webb
02ce4e0b1c
'1 item is a loop' spec 2023-09-20 17:15:16 -05:00
charbelrami
fd7044fe85 add tests for helpfully disabled switch 2023-09-19 15:25:08 -03:00
charbelrami
eaf95a4b2f move elm-program-test and elm-explorations/test into dependencies 2023-09-15 15:18:25 -03:00
charbelrami
06a753bc15 add docs and expose keyboard and mouse helpers 2023-09-15 14:50:01 -03:00
Mandla Moyo
ba53419408 Updated example references to pennant version 2023-09-13 11:47:54 -07:00
Tessa
2dbbb04512
Merge pull request #1514 from NoRedInk/tessa/outline
🌟 Extracting Outline from the monolith
2023-09-12 14:40:52 -06:00
Tessa
f489f654d1
Merge pull request #1511 from NoRedInk/tessa/usage-examples-cont
Use tabs for Usage Examples
2023-09-12 12:40:50 -06:00
Tessa Kelly
3fa96425df Elm review 2023-09-12 12:31:08 -06:00
Tessa Kelly
ed1c0aab6b Adds basic tests 2023-09-12 12:20:10 -06:00
Charbel
922023d4b9
Merge pull request #1512 from NoRedInk/helpfully-disabled-button
A11-3343 Helpfully disabled Button
2023-09-12 14:25:36 -03:00
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