Skip to content

Commit 805bc49

Browse files
committed
Spellcheck
1 parent 85035e8 commit 805bc49

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

tests/e2e/configEditor.spec.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,22 @@ test.describe('Config editor', () => {
3434
await createDataSourceConfigPage({ type: PLUGIN_UID });
3535
const isV2 = await isV2Editor(page);
3636
// V2 renders section titles inside CollapsableSection: the toggle button gets
37-
// aria-labelledby pointing to the label div, so getByRole('button') is the right selector.
38-
await expect(isV2 ? page.getByRole('button', { name: 'Server and encryption' }) : page.getByRole('heading', { name: 'Server' })).toBeVisible();
37+
// aria-label pointing to the label div, so getByRole('button') is the right selector.
38+
await expect(
39+
isV2
40+
? page.getByRole('button', { name: 'Server and encryption' })
41+
: page.getByRole('heading', { name: 'Server' })
42+
).toBeVisible();
3943
});
4044

4145
test('should render Server section', async ({ createDataSourceConfigPage, page }) => {
4246
await createDataSourceConfigPage({ type: PLUGIN_UID });
4347
const isV2 = await isV2Editor(page);
44-
await expect(isV2 ? page.getByRole('button', { name: 'Server and encryption' }) : page.getByRole('heading', { name: 'Server' })).toBeVisible();
48+
await expect(
49+
isV2
50+
? page.getByRole('button', { name: 'Server and encryption' })
51+
: page.getByRole('heading', { name: 'Server' })
52+
).toBeVisible();
4553
await expect(page.getByPlaceholder(isV2 ? 'Enter server address' : 'Server address')).toBeVisible();
4654
await expect(page.getByPlaceholder(isV2 ? 'Enter server port' : '9000')).toBeVisible();
4755
await expect(page.getByRole('radio', { name: 'Native' })).toBeVisible();
@@ -67,7 +75,11 @@ test.describe('Config editor', () => {
6775
test('should render Credentials section', async ({ createDataSourceConfigPage, page }) => {
6876
await createDataSourceConfigPage({ type: PLUGIN_UID });
6977
const isV2 = await isV2Editor(page);
70-
await expect(isV2 ? page.getByRole('button', { name: 'Database credentials' }) : page.getByRole('heading', { name: 'Credentials' })).toBeVisible();
78+
await expect(
79+
isV2
80+
? page.getByRole('button', { name: 'Database credentials' })
81+
: page.getByRole('heading', { name: 'Credentials' })
82+
).toBeVisible();
7183
await expect(page.getByPlaceholder(isV2 ? 'Enter username' : 'default')).toBeVisible();
7284
await expect(page.getByPlaceholder(isV2 ? 'Enter password' : 'password')).toBeVisible();
7385
});

0 commit comments

Comments
 (0)