-
Notifications
You must be signed in to change notification settings - Fork 179
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
Added integration tests for inline text formatting #2718
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2718 +/- ##
===========================================
+ Coverage 67.34% 82.38% +15.03%
===========================================
Files 729 740 +11
Lines 12360 12465 +105
===========================================
+ Hits 8324 10269 +1945
+ Misses 4036 2196 -1840
|
} = useContext(panelContext); | ||
const { | ||
state: { inspectorContentHeight }, | ||
} = useInspector(); | ||
|
||
useEffect(confirmTitle, [confirmTitle]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all panels have a title ("No selection" panel in particular), and if a panel doesn't have a title but still has aria-labelledby
referencing a non-existent id, AXE e2e tests start failing as it's an illegal WAI-ARIA property.
This is not the prettiest way to do it, but it works.
Size Change: +422 B (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very good, imho. Just a few nits.
assets/src/edit-story/karma/fixture/containers/common/select.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one request
# Conflicts: # assets/src/edit-story/karma/fixture/containers/editor.js
assets/src/edit-story/karma/fixture/containers/designPanel/textStyle.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome!!!
Added some questions/comments.
assets/src/edit-story/components/richText/karma/singleSelection.karma.js
Show resolved
Hide resolved
assets/src/edit-story/components/richText/karma/singleSelection.karma.js
Show resolved
Hide resolved
assets/src/edit-story/components/richText/karma/singleSelection.karma.js
Outdated
Show resolved
Hide resolved
assets/src/edit-story/components/richText/karma/singleSelection.karma.js
Show resolved
Hide resolved
assets/src/edit-story/components/richText/karma/singleSelection.karma.js
Show resolved
Hide resolved
assets/src/edit-story/components/richText/karma/inlineStyleOverride.karma.js
Outdated
Show resolved
Hide resolved
assets/src/edit-story/components/richText/karma/inlineStyleOverride.karma.js
Show resolved
Hide resolved
Co-authored-by: Pascal Birchler <pascalb@google.com>
…ries-wp into test/1612-itf-integration
assets/src/edit-story/components/richText/karma/inlineSelection.karma.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@barklund ready to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. One general ask: please add a few snapshots in CUJ tests.
Summary
This PR implements the tests listed in #1612.
Relevant Technical Choices
_utils.js
file.To-do
See #1612
User-facing changes
None
Testing Instructions
None, if tests pass, we're good!
Fixes #1612