Skip to content

Commit

Permalink
remove wrapped assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
daveajrussell committed May 23, 2024
1 parent 1588552 commit 41cd92d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/react-codemirror/src/e2e_tests/configuration.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ test('aria-label is not set by default', async ({ mount, page }) => {
await mount(<CypherEditor />);

const textField = page.getByRole('textbox');

await expect(async () => {
expect(await textField.getAttribute('aria-label')).toBeNull();
}).toPass();
expect(await textField.getAttribute('aria-label')).toBeNull();
});

test('can set aria-label', async ({ mount, page }) => {
Expand All @@ -112,8 +109,5 @@ test('can set aria-label', async ({ mount, page }) => {
await mount(<CypherEditor ariaLabel={ariaLabel} />);

const textField = page.getByRole('textbox');

await expect(async () => {
expect(await textField.getAttribute('aria-label')).toEqual(ariaLabel);
}).toPass();
expect(await textField.getAttribute('aria-label')).toEqual(ariaLabel);
});

0 comments on commit 41cd92d

Please sign in to comment.