Skip to content

Commit

Permalink
Improve test comment and update snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 2, 2023
1 parent 8d2aeaf commit 0b46c66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ exports[`RichText should paste paragraph contents into list 1`] = `
exports[`RichText should preserve internal formatting 1`] = `
"<!-- wp:paragraph -->
<p><mark style=\\"background-color:rgba(0, 0, 0, 0)\\" class=\\"has-inline-color has-cyan-bluish-gray-color\\">1</mark></p>
<p><mark style=\\"background-color:rgba(0, 0, 0, 0)\\" class=\\"has-inline-color has-gray-color\\">1</mark></p>
<!-- /wp:paragraph -->"
`;
exports[`RichText should preserve internal formatting 2`] = `
"<!-- wp:paragraph -->
<p><mark style=\\"background-color:rgba(0, 0, 0, 0)\\" class=\\"has-inline-color has-cyan-bluish-gray-color\\">1</mark></p>
<p><mark style=\\"background-color:rgba(0, 0, 0, 0)\\" class=\\"has-inline-color has-gray-color\\">1</mark></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><mark style=\\"background-color:rgba(0, 0, 0, 0)\\" class=\\"has-inline-color has-cyan-bluish-gray-color\\">1</mark></p>
<p><mark style=\\"background-color:rgba(0, 0, 0, 0)\\" class=\\"has-inline-color has-gray-color\\">1</mark></p>
<!-- /wp:paragraph -->"
`;
Expand Down
3 changes: 2 additions & 1 deletion packages/e2e-tests/specs/editor/various/rich-text.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ describe( 'RichText', () => {
await page.waitForXPath(
'//button[@role="tab"][@aria-selected="true"][text()="Text"]'
);
// Tab to the "Text" tab.
// Initial focus is on the "Text" tab.
// Tab to the "Custom color picker".
await page.keyboard.press( 'Tab' );
// Tab to black.
await page.keyboard.press( 'Tab' );
Expand Down

0 comments on commit 0b46c66

Please sign in to comment.