Skip to content

Commit

Permalink
chore(*): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Oct 14, 2024
1 parent 31bf137 commit 66bca79
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/playwright/specs/keys/01-Keys.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,6 @@ test.describe('keys', () => {
withAction: 'submit',
})
await expect(page.locator('[data-testid="form-error"] .alert-content'))
.toHaveText(`UNIQUE violation detected on '{name="pem-key"}'`)
.toHaveText('UNIQUE violation detected on \'{name="pem-key"}\'')
})
})
2 changes: 1 addition & 1 deletion tests/playwright/specs/misc/02-NotFound.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test.describe('not found', () => {
})

test('plugin detail - 404', async ({ page }) => {
await expectConfigCardNotFound(page, '/plugins/non-existent/non-existent', `No plugin named 'non-existent'`)
await expectConfigCardNotFound(page, '/plugins/non-existent/non-existent', 'No plugin named \'non-existent\'')
})

test('plugins create - 404', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/specs/services/01-Service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ test.describe('services', () => {
})

await expect(page.getByTestId('form-error')).toBeVisible()
await expect(page.getByTestId('form-error')).toHaveText(`UNIQUE violation detected on '{name="testService"}'`)
await expect(page.getByTestId('form-error')).toHaveText('UNIQUE violation detected on \'{name="testService"}\'')
})

test('service create - fail & fix with invalid info', async ({ page }) => {
Expand Down
6 changes: 3 additions & 3 deletions tests/playwright/specs/upstreams/01-Upstreams.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ test.describe('upstreams', () => {
})
}

test(`upstream create - successful with hash-on 'cookie',hash-fallback is disabled`, async ({ page, upstreamListPage }) => {
test('upstream create - successful with hash-on \'cookie\',hash-fallback is disabled', async ({ page, upstreamListPage }) => {
await create_upstream(
page, upstreamListPage,
async () => {
Expand Down Expand Up @@ -574,7 +574,7 @@ test.describe('upstreams', () => {
await locator.locator('.multiselect-trigger .selection-badges-container').click({ position: { x: 1, y: 1 } })
}

test(`upstream update - successful updates 'health check'`, async ({ page, upstreamListPage }) => {
test('upstream update - successful updates \'health check\'', async ({ page, upstreamListPage }) => {
test.slow()
// create a new upstream
await create_upstream(
Expand Down Expand Up @@ -681,7 +681,7 @@ test.describe('upstreams', () => {
})
}

test(`upstream update - successful with active and passive health check types are all 'tcp'`, async ({ page, upstreamListPage }) => {
test('upstream update - successful with active and passive health check types are all \'tcp\'', async ({ page, upstreamListPage }) => {
await create_upstream(
page, upstreamListPage,
async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test.describe('upstreams', () => {
await page.locator('[data-testid="target-form-target"]').type('123')
await page.locator('.k-prompt [data-testid="modal-action-button"]').click()
await expect(page.locator('.kong-ui-entities-target-form [data-testid="form-error"]')).toBeVisible()
await expect(page.locator('.kong-ui-entities-target-form [data-testid="form-error"]')).toHaveText(`schema violation (target: Invalid target ('123'); not a valid hostname or ip address)`)
await expect(page.locator('.kong-ui-entities-target-form [data-testid="form-error"]')).toHaveText('schema violation (target: Invalid target (\'123\'); not a valid hostname or ip address)')
})

test('mark healthy/unhealthy should not appear in the menu', async ({ page }) => {
Expand Down

0 comments on commit 66bca79

Please sign in to comment.