Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jun 6, 2019
1 parent 3778a05 commit 7320056
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 38 deletions.
6 changes: 0 additions & 6 deletions packages/e2e-tests/specs/__snapshots__/rich-text.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ exports[`RichText should apply formatting when selection is collapsed 1`] = `
<!-- /wp:paragraph -->"
`;

exports[`RichText should apply formatting with access shortcut 1`] = `
"<!-- wp:paragraph -->
<p><s>test</s></p>
<!-- /wp:paragraph -->"
`;

exports[`RichText should apply formatting with primary shortcut 1`] = `
"<!-- wp:paragraph -->
<p><strong>test</strong></p>
Expand Down
9 changes: 0 additions & 9 deletions packages/e2e-tests/specs/rich-text.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ describe( 'RichText', () => {
expect( await getEditedPostContent() ).toMatchSnapshot();
} );

it( 'should apply formatting with access shortcut', async () => {
await clickBlockAppender();
await page.keyboard.type( 'test' );
await pressKeyWithModifier( 'primary', 'a' );
await pressKeyWithModifier( 'access', 'd' );

expect( await getEditedPostContent() ).toMatchSnapshot();
} );

it( 'should apply formatting with primary shortcut', async () => {
await clickBlockAppender();
await page.keyboard.type( 'test' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,6 @@ exports[`KeyboardShortcutHelpModal should match snapshot when the modal is activ
"I",
],
},
Object {
"description": "Underline the selected text.",
"keyCombination": Array [
"Ctrl",
"+",
"U",
],
},
Object {
"description": "Convert the selected text into a link.",
"keyCombination": Array [
Expand All @@ -262,23 +254,11 @@ exports[`KeyboardShortcutHelpModal should match snapshot when the modal is activ
],
},
Object {
"description": "Add a strikethrough to the selected text.",
"keyCombination": Array [
"Shift",
"+",
"Alt",
"+",
"D",
],
},
Object {
"description": "Display the selected text in a monospaced font.",
"description": "Underline the selected text.",
"keyCombination": Array [
"Shift",
"+",
"Alt",
"Ctrl",
"+",
"X",
"U",
],
},
]
Expand Down

0 comments on commit 7320056

Please sign in to comment.