Skip to content

Commit 3f6a2d3

Browse files
committed
chore(138): edits for pr
1 parent 80d88cc commit 3f6a2d3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/editor/src/components/toolbar/index.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// typescript
21
import './index.ts';
32
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
43
import { page, userEvent } from 'vitest/browser';
@@ -39,7 +38,6 @@ describe('<clippy-toolbar>', () => {
3938

4039
const button = page.getByRole('button', { name: 'Keyboard shortcuts' });
4140
await button.click();
42-
console.log(page.getByTestId('clippy-shortcuts-dialog'));
4341
expect(page.getByTestId('clippy-shortcuts-dialog')).toHaveAttribute('open');
4442
});
4543

@@ -48,11 +46,11 @@ describe('<clippy-toolbar>', () => {
4846
await user.click(linkButton);
4947

5048
expect(page.getByTestId('clippy-link-dialog')).toHaveAttribute('open');
51-
const urlInput = page.getByRole('textbox');
49+
const urlInput = page.getByLabelText('Link to:');
5250
await user.type(urlInput, 'https://example.com');
5351

5452
await user.keyboard('{Enter}');
55-
expect(page.getByRole('textbox')).toHaveValue('https://example.com');
53+
expect(page.getByLabelText('Link to:')).toHaveValue('https://example.com');
5654
await user.click(page.getByRole('button', { name: 'Link toevoegen' }));
5755
expect(page.getByTestId('clippy-link-dialog')).not.toHaveAttribute('open');
5856
});

packages/editor/src/components/toolbar/shortcuts-dialog/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class ShortcutsDialog extends LitElement {
2626
data-testid="clippy-shortcuts-dialog"
2727
${ref(this.dialogRef)}
2828
>
29-
<utrecht-button>test</utrecht-button>
3029
<div class="clippy-shortcuts__header">
3130
<h1 id="clippy-shortcuts-title">Sneltoetsen</h1>
3231
<clippy-toolbar-button @click=${() => this.close()} aria-label="Sluit sneltoetsen dialog">

0 commit comments

Comments
 (0)