Skip to content

Update focus tests to better match user behavior#2506

Merged
marvinhagemeister merged 2 commits intomasterfrom
focus-tests-updates
Apr 27, 2020
Merged

Update focus tests to better match user behavior#2506
marvinhagemeister merged 2 commits intomasterfrom
focus-tests-updates

Conversation

@andrewiggins
Copy link
Copy Markdown
Member

Usually, component's just don't appear out of nowhere. Most common cases are toggles (condition && <Component />) or lists (<div><br/>{children}<br/></div>). As such, I've updated our focus tests to better match this common behavior.

Further, our test cases now more closely match #2446. I've also added @JoviDeCroock's test case from #2482 using this new DynamicList helper class I've added.

Let me know what you think!

@github-actions
Copy link
Copy Markdown

Size Change: 0 B

Total Size: 39.3 kB

ℹ️ View Unchanged
Filename Size Change
compat/dist/compat.js 3.12 kB 0 B
compat/dist/compat.module.js 3.14 kB 0 B
compat/dist/compat.umd.js 3.17 kB 0 B
debug/dist/debug.js 3 kB 0 B
debug/dist/debug.module.js 2.98 kB 0 B
debug/dist/debug.umd.js 3.08 kB 0 B
devtools/dist/devtools.js 185 B 0 B
devtools/dist/devtools.module.js 194 B 0 B
devtools/dist/devtools.umd.js 260 B 0 B
dist/preact.js 3.83 kB 0 B
dist/preact.min.js 3.83 kB 0 B
dist/preact.module.js 3.84 kB 0 B
dist/preact.umd.js 3.89 kB 0 B
hooks/dist/hooks.js 1.09 kB 0 B
hooks/dist/hooks.module.js 1.11 kB 0 B
hooks/dist/hooks.umd.js 1.17 kB 0 B
test-utils/dist/testUtils.js 437 B 0 B
test-utils/dist/testUtils.module.js 439 B 0 B
test-utils/dist/testUtils.umd.js 515 B 0 B

compressed-size-action

Copy link
Copy Markdown
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's awesome! Much cleaner 👍

@marvinhagemeister marvinhagemeister merged commit 1ab7061 into master Apr 27, 2020
@marvinhagemeister marvinhagemeister deleted the focus-tests-updates branch April 27, 2020 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants