CI: Allow failed Playwright tests to fail entire build (#84244)
* bump plugin-e2e and fix failing test * do not ignore failures * generate trace on every test * force test to fail for debugging purposes * fix broken test * regenerate drone file
This commit is contained in:
@@ -24,9 +24,18 @@ test.describe('test createDataSourceConfigPage fixture, saveAndTest and toBeOK m
|
||||
});
|
||||
|
||||
test.describe('test data source with frontend only health check', () => {
|
||||
test('valid credentials should display a success alert on the page', async ({ createDataSourceConfigPage }) => {
|
||||
const configPage = await createDataSourceConfigPage({ type: 'testdata' });
|
||||
await configPage.saveAndTest({ skipWaitForResponse: true });
|
||||
test('valid credentials should display a success alert on the page', async ({
|
||||
createDataSourceConfigPage,
|
||||
page,
|
||||
selectors,
|
||||
}) => {
|
||||
const configPage = await createDataSourceConfigPage({ type: 'zipkin' });
|
||||
const healthCheckPath = `${selectors.apis.DataSource.proxy(configPage.datasource.uid)}/api/v2/services`;
|
||||
await page.route(healthCheckPath, async (route) => {
|
||||
await route.fulfill({ status: 200, body: 'OK' });
|
||||
});
|
||||
await page.getByPlaceholder('http://localhost:9411').fill('http://localhost:9411');
|
||||
await expect(configPage.saveAndTest({ path: healthCheckPath })).toBeOK();
|
||||
await expect(
|
||||
configPage,
|
||||
formatExpectError('Expected data source config to display success alert after save')
|
||||
|
||||
Reference in New Issue
Block a user