Commit Graph

368 Commits

Author SHA1 Message Date
Tessa Kelly
02bf186482 Test the current page and aria labels 2022-12-29 16:25:51 -07:00
Tessa Kelly
c747855405 Adds two more tests around when the nav should be rendered" 2022-12-29 15:57:28 -07:00
Tessa Kelly
129e3d582d Adds failing test against empty pagination behavior 2022-12-29 15:55:30 -07:00
Tessa Kelly
05fe6aea7b cp Block.V2 to Block.V3 2022-12-22 15:11:07 -07:00
Tessa Kelly
52b2fd0fbd Fix spec 2022-12-22 14:31:37 -07:00
Tessa Kelly
3f4fa44ed9 Add tests 2022-12-21 16:03:02 -07:00
Tessa Kelly
7a8d9c9999 Fix test compilation 2022-12-21 15:58:01 -07:00
Tessa Kelly
71262cdd83 Implement -- seems to be working nicely 2022-12-20 12:40:38 -07:00
Tessa Kelly
972b70d375 Adds API support for xOffsets
note that the implementation is not finished yet
2022-12-20 12:05:29 -07:00
Tessa Kelly
9ac84e4c05 Fix z-index positioning 2022-12-19 16:55:11 -07:00
Tessa Kelly
f5d158a774 Improve getLabelPosition api 2022-12-19 16:29:52 -07:00
Tessa Kelly
e4f3e5ca3d Adjust the positioning algorithm to add more space between balloons 2022-12-19 16:21:08 -07:00
Tessa Kelly
a84d62c3f2 labelHeight -> labelPosition, to prep for horizontal adjustments 2022-12-19 15:51:26 -07:00
Tessa Kelly
1730921d5f Fix duplicate id issue 2022-12-19 15:49:07 -07:00
Tessa Kelly
317e29ac3c 💀 remove deprecated string helper 2022-12-19 15:43:52 -07:00
Tessa Kelly
49966dd189 Adds Block.V2 2022-12-19 15:41:49 -07:00
Tessa Kelly
8db44f794e Adds regression test against repeated ids 2022-12-19 15:34:46 -07:00
Tessa Kelly
d788f55b14 Adds regression test against failed repositioning 2022-12-19 14:51:14 -07:00
Tessa Kelly
734cbb94cf Adds failing tests against non-overlapping labels 2022-12-19 13:31:10 -07:00
Tessa Kelly
f60a68e3f1 Adds a test against different height label content 2022-12-15 15:02:21 -07:00
Tessa Kelly
868c0466d3 Test multiple line behavior 2022-12-15 14:58:08 -07:00
Tessa Kelly
fe87c3e159 Adds a test for multiple labels 2022-12-15 14:53:29 -07:00
Tessa Kelly
2d89306931 Adds getLableHeights tests" 2022-12-15 14:38:46 -07:00
charbelrami
8a0904fa72 fix failing tests 2022-12-07 17:33:11 -03:00
Tessa Kelly
dce4be35b0 Merge remote-tracking branch 'origin/master' into bat/block-omnibus 2022-11-17 16:43:25 -07:00
Tessa Kelly
89a34ed25b adds failing tests against the markdown behavior 2022-11-16 13:53:50 -07:00
Tessa Kelly
96e5c99e22 Fix tests 2022-11-15 14:54:04 -07:00
Mariano Abel Coca
b8e5f20807 Fix tests 2022-11-08 18:19:42 -03:00
Mariano Abel Coca
9a7b627ecf Merge remote-tracking branch 'origin/master' into growth/menu-dialog 2022-11-08 17:22:49 -03:00
Mariano Abel Coca
2b7d5191fa Fix typo in tests 2022-11-08 10:23:09 -03:00
Tessa Kelly
52b3162ab2 Adds mostly-empty test file 2022-11-07 16:31:57 -07:00
Mariano Abel Coca
dc59910584 Bring disclosure back and keep alog with dialog 2022-11-07 12:24:08 -03:00
Mariano Abel Coca
0a9695073f Make the dialog behave like a dialog 2022-11-07 12:02:04 -03:00
Mariano Abel Coca
9691d97650 Rename Menu disclosure to dialog to proper reflect the desired behavior 2022-11-04 11:51:56 -03:00
Tessa
602c3c4390
Merge pull request #1150 from NoRedInk/fix-peer-review-highlighter
Update accessible-html-with-css version
2022-11-03 15:53:26 -06:00
Alex Perkins
7dc1399da6
make remove punctuation remove more punctuation 2022-11-02 18:45:21 -06:00
Alex Perkins
3efc71c977
remove trailing dash 2022-11-02 18:44:46 -06:00
Tessa Kelly
4b3a0e84d3 Fix CI 2022-11-02 17:02:25 -06:00
Erik Feeley
db05f49222 Adds tests and updates implementation
One regression the safeIdString method had was that it did not collapse
when there were many dashes. This fixes that and adds some tests around
the behavior. I was hoping to figure out how to fuzz test this but was
unable to do so.
2022-11-02 17:02:09 -04:00
Tessa Kelly
f4b4dc32e0 Adds regression test 2022-11-02 13:09:20 -06:00
Tessa Kelly
0b1b699383 Ensure the before elements are actually rendered 2022-10-24 17:28:29 -06:00
Tessa Kelly
6b349b7012 Adds tests 2022-10-24 15:58:25 -06:00
Tessa Kelly
0dc817b2a0 Fix ci 2022-10-14 16:19:02 -06:00
charbelrami
a3b6b2934a remove unused modules 2022-10-05 18:25:05 -03:00
charbelrami
2a70a52537 add carousel tests 2022-10-05 16:43:01 -03:00
charbelrami
94930179d5 add missing type annotation 2022-10-04 17:50:29 -03:00
charbelrami
a42ef41e8d add tab tests 2022-10-04 15:08:57 -03:00
Charbel
87c0e0a6ae
Merge pull request #1088 from NoRedInk/highlighter-skip-static
A11-1616 make arrow keys skip static elements
2022-09-27 15:45:35 -03:00
charbelrami
e260fe6da6 add highlighter test: only one el in tab sequence 2022-09-27 11:36:43 -03:00
charbelrami
72c84e1671 add more tests for highlighter 2022-09-26 17:20:41 -03:00
charbelrami
6bbc4b7237 write tests for highlighter 2022-09-26 10:14:33 -03:00
Tessa Kelly
ffce39d717 Adds initial keyboard test for right arrow without shift 2022-09-21 10:59:21 -06:00
Tessa Kelly
89c932ee07 Extract spec helpers for key events from Menu 2022-09-21 10:58:56 -06:00
Tessa Kelly
765412d5ab Sets up first test for Highlighter 2022-09-21 10:41:37 -06:00
Tessa Kelly
203557c4b4 Test the headerId 2022-09-16 17:00:04 -06:00
Tessa Kelly
7e7fc0c756 Adds tests
all passing, except for the one about the pre-existing secondary breadcrumbs page title rules
2022-09-16 17:00:04 -06:00
Brian J. Cardiff
cc614340bc Add tests 2022-07-11 11:10:31 -03:00
Brian J. Cardiff
ed06e5a929 Merge branch 'master' into growth/menu-containsForm 2022-07-08 15:18:32 -03:00
Antoine Dauguet
f62c6114e5 Fix tests. 2022-07-07 16:29:57 +02:00
Brian Hicks
a239aa5122
fix tests 2022-07-06 09:09:23 -05:00
Brian Hicks
c5de9d4096
bump sortable table to v3 2022-07-06 08:10:49 -05:00
Brian J. Cardiff
2bed33181b Add test for default behavior
Unable to test containsForm behavior since that means triggering an event that is not registered
2022-07-05 17:18:26 -03:00
Brian J. Cardiff
36064316fd
Update tests/Spec/Nri/Ui/Menu.elm
Co-authored-by: Tessa <tesk9@users.noreply.github.com>
2022-06-24 18:20:40 -03:00
Brian J. Cardiff
97dddc6306 Add test for click interaction 2022-06-24 17:35:55 -03:00
Brian J. Cardiff
92e0e0244f Add test for mouse hover interaction 2022-06-24 17:27:24 -03:00
Tessa Kelly
f80580fb00 💀 remove slide and slide modal 2022-06-09 13:26:01 -07:00
Tessa Kelly
e991231691 💀 remove PremiumLevel and the component versions that depended on it 2022-06-09 13:25:40 -07:00
Tessa Kelly
b5058f545e Adds expectations against the disabled status 2022-05-16 14:09:16 -07:00
Tessa Kelly
61db0f617f Adds role assertions 2022-05-16 14:03:52 -07:00
Tessa Kelly
fcbba87765 Get tests to fail 2022-05-16 10:14:15 -07:00
Tessa Kelly
507915d8dd Refactor to focus the tests on the pieces of info that matter 2022-05-16 10:10:30 -07:00
Tessa Kelly
a6d6f275c0 Adds some basic tests against non-disabled links 2022-05-16 10:04:25 -07:00
Tessa Kelly
fdd8078435 onHover -> onToggle 2022-05-02 15:40:11 -07:00
Tessa Kelly
f07b544a81 Update specs 2022-05-02 15:33:02 -07:00
Ju Liu
f2f4796648 Run autofix 2022-03-15 17:13:25 +00:00
Tessa Kelly
d5bf1577b4 💀 Select V7 2021-11-12 09:56:04 -08:00
Tessa Kelly
aa252e0348 💀 remove Select V5 2021-11-09 12:38:31 -08:00
Tessa Kelly
e7f5f5e559 Fix ci 2021-10-29 11:56:54 -07:00
Tessa Kelly
21d42e1bba Switch to V7 2021-10-29 11:05:06 -07:00
Tessa Kelly
e3f859f1f1 💀 test against removed module 2021-05-27 18:30:31 -07:00
Tessa Kelly
e5c36924a4 💀 remove zipper extra 2021-05-27 18:30:31 -07:00
Ju Liu
7324f5508b Fix spec 2020-11-16 12:46:24 +00:00
Tessa Kelly
c3c88e8cc0 Update segmented control import 2020-09-09 11:07:19 -07:00
Tessa Kelly
0474335320 🎨 simplify test setup 2020-09-09 11:04:44 -07:00
Tessa Kelly
a7ec9f48bb Test mouse enter and mouse leave behavior 2020-09-09 11:00:01 -07:00
Tessa Kelly
d65321053e Use variables for the onHover tests 2020-09-09 10:58:23 -07:00
Tessa Kelly
d0fabd528d Fix the onclick test
Note: the old onClick open-on-focus behavior is gone.
2020-09-09 10:56:20 -07:00
Tessa Kelly
887f612e02 Fix the toggle tip on hover tests 2020-09-09 10:48:43 -07:00
Tessa Kelly
3eb01db0c5 Adds helpers 2020-09-09 10:36:18 -07:00
Tessa Kelly
e0cd60f10e Wet the examples 2020-09-09 10:23:23 -07:00
Tessa Kelly
329aec27c5 Fix tooltip spec compilation 2020-09-09 10:13:42 -07:00
Brian Hicks
b02d90c59d fix up the tests... again 2020-08-20 16:01:42 -05:00
Brian Hicks
95b1592854 fix up tests 2020-08-20 15:45:26 -05:00
Brian Hicks
85bcfbe424 copy v11 -> v12 2020-08-20 15:07:18 -05:00
Brian Hicks
dface805bc add a separate checked attribute for writing tests against
The basic problem here: `node.checked = true` in a real browser does not
modify the DOM; it only modifies the internal state of the element. It shows
up in our tests because `Test.Html.Query` makes all the elements and properties
visible for testing.

To get around this, we just add a `data-nri-checked` for automated tests
to use.
2020-08-17 12:23:39 -05:00
Brian Hicks
3bbcc27d20 test checked attribute (since QA will be depending on it in their tests) 2020-08-17 12:23:39 -05:00
Brian Hicks
94f5d0e5cc move TextInput teests to a non-versioned file 2020-08-13 16:40:03 -05:00
Brian Hicks
8b91af1ccb move SlideModal tests to a non-versioned file 2020-08-13 16:39:20 -05:00
Brian Hicks
b6dc6a21c8 move PremiumCheckbox tests to a non-versioned file 2020-08-13 16:38:48 -05:00
Brian Hicks
b014df5af7 move Tooltip tests to a non-versioned file 2020-08-13 16:35:23 -05:00
Brian Hicks
9a51b4b5c2 move SortableTable tests to a non-versioned file 2020-08-13 16:34:03 -05:00
Brian Hicks
c7d6bafc96 move Page tests to a non-versioned file 2020-08-13 16:33:15 -05:00
Brian Hicks
72b5aeeb69 delete spec for deprecated component 2020-08-13 16:12:18 -05:00
Tessa Kelly
603a1f1e5a Fix test file, which should be against the newest version 2020-07-31 13:18:31 -07:00
Tessa Kelly
3bf24352af 💀 remove old components 2020-06-22 17:46:20 -07:00
Tessa Kelly
719cebe867 Fix test compilation 2020-06-10 14:56:55 -07:00
Tessa Kelly
fb53ce05d5 Copy V4 -> V5 2020-06-09 14:21:42 -07:00
Tessa Kelly
f7cf19a07e Merge remote-tracking branch 'origin/master' into tessa/remove-old-components 2020-05-01 10:35:55 -07:00
Aaron VonderHaar
098bdcce0c Make Nri.Ui.Tabs.V4 work with ProgramTest.clickButton
And also applies the guidelines from https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tab_Role#Best_practices
2020-04-28 16:29:00 -07:00
Tessa Kelly
d56f45248d 💀 remove select v6 2020-04-24 16:55:12 -07:00
Tessa Kelly
7068f4463c 💀 old segmented control 2020-04-24 16:55:11 -07:00
Tessa Kelly
017cc10300 💀 old slidemodal 2020-04-24 16:55:11 -07:00
Tessa Kelly
f656b6677e 💀 remove old tests 2020-04-24 16:54:52 -07:00
Aaron VonderHaar
af94ad7d0c Remove unnecessary setup from Spec.Nri.Ui.TextInput.V6 2020-04-13 17:01:33 -07:00
Aaron VonderHaar
a2d305b6e4 New attributes-style API for TextInput.V6 2020-04-13 17:01:33 -07:00
Aaron VonderHaar
36ce3cb9b2 Inline Spec.Nri.Ui.TextInput.V6.basic 2020-04-13 16:08:54 -07:00
Aaron VonderHaar
fab0271d03 Create Nri.Ui.TextInput.V6 from V5 2020-04-13 14:36:39 -07:00
Tessa Kelly
7bff7cf3d9 Use pennant v2 in checkbox module 2020-03-31 10:54:40 -07:00
Gavin Panella
28d36c6f64 Revert "Merge pull request #461 from NoRedInk/puffins/prepare-for-merge"
This reverts commit 4373c78d82, reversing
changes made to 6b78075f02.
2020-03-06 20:00:34 +01:00
Stoeffel
873f0ef521 move files into subdirectory 2020-03-02 10:45:03 +01:00
Tessa Kelly
3ce36fe1d5 Fix test compilation 2020-01-16 13:20:14 -08:00
Tessa Kelly
c8c2d9d875 Adds Select V7 (direct copy of V6) 2020-01-16 11:41:51 -08:00
brookeangel
4ae52055e3 fix test for toggletip 2019-12-02 16:13:26 -08:00
brookeangel
7e55bfbd2a also test toggletip and add some accessibility goodies 2019-09-30 15:29:43 -07:00
brookeangel
77b485a485 both types of tooltips can trigger on focus / blur - test it 2019-09-30 14:30:21 -07:00
Katie Hughes
ffafed6ddd add test confirming click clicks 2019-09-17 15:20:47 -07:00
Katie Hughes
daa6d2046d fix test 2019-09-16 16:26:30 -07:00
Katie Hughes
0737af2649 try another attribute so aria isn't mad 2019-09-16 14:51:24 -07:00
Katie Hughes
aecac29240 Create a toggle only view for SegmentedControl so you don't need to use it for page navigation 2019-09-11 10:34:03 -07:00
Michael Glass
1fae6a445b upgrade list zipper dependency 2019-09-04 11:03:03 +02:00
brookeangel
49b7a799a1 add tests for checkbox v6 2019-07-24 10:18:15 -07:00
Tessa Kelly
cee2ad4ea6 Adds test module from the monolith 2019-07-11 13:53:40 -07:00
Katie Hughes
0575f48c74 add select v6 tests 2019-05-17 15:38:47 -07:00
Katie Hughes
594f6355e2 remove type variable, change reload text 2019-05-14 16:04:51 -07:00
Katie Hughes
f0f2dd97e3 add tests for error page recovery text 2019-05-13 16:58:34 -07:00
Juan Edi
2a6db60f08 Fix spec 2019-04-12 17:08:43 -03:00
Tessa Kelly
d191da43ed Reset V1 to the old API
Make a V2 with the new content
test against V2
use V2 in the styleguide
2019-04-08 18:08:23 -07:00
Tessa Kelly
de598edb97 Adds test against forward button navigability 2019-04-05 13:58:16 -07:00
Tessa Kelly
3c491a77ea Adds failing test against navigation behavior 2019-04-05 12:45:58 -07:00
Tessa Kelly
71a8772f67 Adds test against clicking straight through the modals 2019-04-05 12:36:48 -07:00
Tessa Kelly
3d988ba028 Set up test context 2019-04-05 12:35:40 -07:00
Tessa Kelly
7b8ee07c7b adds basic test against open and closed states 2019-04-05 12:09:09 -07:00
Aaron VonderHaar
8a8626d240 Add Nri.Ui.TextInput.V4.generateId 2019-01-21 16:32:42 -08:00
mavnn
ae7aa6047c
Add Checkbox.V4/PremiumCheckbox.V3 with correct text styling
Previous versions relied on the nri2015 sass stylesheet for label style.
2018-12-14 12:18:49 +00:00
Brooke Angel
171702ea6c fix test ci script 2018-12-11 21:57:06 +01:00
Richard Feldman
e2907d9ba2 Prep for 0.19 dual-publish (#163)
* Use elm-css 16.0.0

* 💀 Ui.Checkbox V1 and V2

* s/Css.Foreign/Css.Global/g

* 💀 Nri.Ui.Styles.V1

* 💀 BannerAlert.V1

* 💀 Modal.V1

* 💀 Dropdown.V1

* 💀 Select.V1 and V2

* 💀 Alert.V1

* 💀 Button.V1 and V2

* 💀 Divider.V1

* 💀 Icon.V1 and V2

* 💀 Outline.V1

* 💀 SegmentedControl.V1-V5

* 💀 TextArea.V1 and V2

* 💀 TextInput.V1

* delete the rest of the modules

* actually more deletions

* InputStyles v1 is unused

* move to src-0.18

* do the 0.19 upgrade

* select options are addressable by index

* elm-css 16

* update scripts

* elm-format

* Update V2.elm

* put the nbsp back

* elm-format validation for both versions
2018-11-12 15:38:19 -08:00
Luke Westby
10e29b412b
Puffins final upgrades (#166)
* add toString to select config

* let table use v2 keyframes

* add to elm-package

* use button for tabs

* delete noop hrefs

* add to select tests

* use html v3
2018-11-12 12:25:37 -08:00
James Gary
6897215469 🤦 Remove stuff from debugging 2018-09-07 15:22:35 -07:00
James Gary
c00828a3c1 Revert changes made to checkbox V1 2018-09-07 15:21:56 -07:00
James Gary
bae4268dcc Copy PremiumWithWriting v1 to v2, expose in elm-package.json 2018-09-07 15:20:25 -07:00
James Gary
509141f3cb Match the asset name that's already in the monolith 2018-09-05 15:38:44 -07:00
James Gary
833556e688 Add premium writing flag asset, make test more specific 2018-09-05 14:34:55 -07:00
James Gary
ee9271bdff Update PremiumCheckbox to explicitly manage pennant
- Simplify example
2018-09-05 13:40:18 -07:00
James Gary
b5393a25e8 Simplify PremiumConfig 2018-08-31 13:11:32 -07:00
James Gary
b2a2532ff0 Don't require PremiumLevel; allow general premium levels 2018-08-30 12:47:48 -07:00
Aaron VonderHaar
6fe447decf Add Nri.Ui.Checkbox.V3.selectedFromBool convenience function 2018-08-21 11:38:31 -07:00
Stoeffel
649746369b convert DisclosureIndicator to Html.Styled 2018-07-27 08:26:48 +02:00
Stoeffel
a2094f3f6e adds disclosure indicator 2018-07-27 08:26:48 +02:00
Brooke
d464bb7480 add tests for V3 2018-07-10 17:55:18 -07:00
Tessa Kelly
abde09a461 Update class names 2018-06-27 12:14:29 -07:00
Tessa Kelly
f918183bc6 💀 kill empty tests 2018-06-19 18:06:07 -07:00
Tessa Kelly
2c4169a334 Extract the premium chekcbox functionality 2018-06-19 17:58:10 -07:00
Tessa Kelly
f2531b0a2f Pull the assets up out of the sytesl 2018-06-15 10:54:38 -07:00
Tessa Kelly
0755e5cbb4 Return Html>styled from the helpers that use buildCheckbox 2018-06-15 09:51:24 -07:00
Tessa Kelly
994b058bb6 Add new version of the checkbox 2018-06-14 18:15:04 -07:00
Hardy Jones
cbb7c34225
Test the new select version
We make a suite that checks the behavior of both versions.
Assuming they have the same API, this should work.

If we add another version and it changes the API,
we might want to rethink this approach.
2018-04-18 07:59:26 -07:00
Hardy Jones
276d20c3ef
Extract tests for select from the monolith
This was forgotten in the extraction PR.
Just moves the tests over verbatim.
2018-04-17 11:25:29 -07:00
Jasper Woudenberg
fd88711766 Add tests for checkbox
These tests are fresh from the monolith.
2018-03-27 15:59:09 +02:00