Skip to content

Commit

Permalink
test(element): remove Viewer exists assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Jan 31, 2024
1 parent f94cc2d commit cfe5406
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/element/examples/compare.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>itk-view-2d</title>
<title>Compare</title>
<link rel="stylesheet" href="index.css" />
<script type="module" src="../src/itk-viewer-element.ts"></script>
<script type="module" src="../src/itk-viewport.ts"></script>
Expand Down
2 changes: 0 additions & 2 deletions packages/element/src/itk-image-info-viewport.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ describe('ImageInfoViewport', () => {
<itk-image-info-viewport></itk-image-info-viewport>
</itk-viewer>
`);

cy.get('itk-viewer').shadow().contains('Viewer');
});

it('has image info', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/element/src/itk-viewer-element.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import './itk-viewer-element';
describe('Lit mount', () => {
it('mounts', () => {
cy.mount<'itk-viewer'>(html`<itk-viewer image="url"></itk-viewer>`);
cy.get('itk-viewer').shadow().contains('Viewer');
});
});

0 comments on commit cfe5406

Please sign in to comment.