Skip to content

Commit c97fa86

Browse files
committed
test: tests updated to expect new html
1 parent eb0a586 commit c97fa86

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

client/common/ButtonOrLink.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('ButtonOrLink', () => {
1313
render(<ButtonOrLink onClick={clickHandler}>Text</ButtonOrLink>);
1414
const button = screen.getByRole('button');
1515
expect(button).toBeInstanceOf(HTMLButtonElement);
16-
expect(button).toContainHTML('<button>Text</button>');
16+
expect(button).toContainHTML('<button aria-disabled="false">Text</button>');
1717
fireEvent.click(button);
1818
expect(clickHandler).toHaveBeenCalled();
1919
});

client/modules/IDE/components/Header/__snapshots__/Nav.unit.test.jsx.snap

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,32 @@ exports[`Nav renders editor version for desktop 1`] = `
461461
<li>
462462
New
463463
</li>
464+
<li>
465+
Save
466+
<span
467+
class="nav__keyboard-shortcut"
468+
>
469+
Ctrl+S
470+
</span>
471+
</li>
472+
<li>
473+
Duplicate
474+
</li>
475+
<li>
476+
Share
477+
</li>
478+
<li>
479+
Download
480+
</li>
481+
<li>
482+
Open
483+
</li>
484+
<li>
485+
Add to Collection
486+
</li>
487+
<li>
488+
Examples
489+
</li>
464490
</ul>
465491
</li>
466492
<li

0 commit comments

Comments
 (0)