diff --git a/web-console/e2e-tests/auto-compaction.spec.ts b/web-console/e2e-tests/auto-compaction.spec.ts index 58aa047d03d..cfdaa9dd520 100644 --- a/web-console/e2e-tests/auto-compaction.spec.ts +++ b/web-console/e2e-tests/auto-compaction.spec.ts @@ -55,7 +55,7 @@ describe('Auto-compaction', () => { }); it('Compacts segments from dynamic to hash partitions', async () => { - const testName = 'autocompaction-dynamic-to-hash-'; + const testName = 'autocompaction-dynamic-to-hash'; const datasourceName = testName + new Date().toISOString(); loadInitialData(datasourceName); diff --git a/web-console/e2e-tests/reindexing.spec.ts b/web-console/e2e-tests/reindexing.spec.ts index 65a1e120974..a0a8e710d91 100644 --- a/web-console/e2e-tests/reindexing.spec.ts +++ b/web-console/e2e-tests/reindexing.spec.ts @@ -60,7 +60,7 @@ describe('Reindexing from Druid', () => { }); it('Reindex datasource from dynamic to range partitions', async () => { - const testName = 'reindex-dynamic-to-range-'; + const testName = 'reindex-dynamic-to-range'; const datasourceName = testName + new Date().toISOString(); const interval = '2015-09-12/2015-09-13'; const dataConnector = new ReindexDataConnector(page, { diff --git a/web-console/e2e-tests/tutorial-batch.spec.ts b/web-console/e2e-tests/tutorial-batch.spec.ts index 4b4d90e200b..3fa15af9d2a 100644 --- a/web-console/e2e-tests/tutorial-batch.spec.ts +++ b/web-console/e2e-tests/tutorial-batch.spec.ts @@ -56,7 +56,7 @@ describe('Tutorial: Loading a file', () => { }); it('Loads data from local disk', async () => { - const testName = 'load-data-from-local-disk-'; + const testName = 'load-data-from-local-disk'; const datasourceName = testName + ALL_SORTS_OF_CHARS + new Date().toISOString(); const dataLoader = new DataLoader({ page: page, diff --git a/web-console/e2e-tests/util/playwright.ts b/web-console/e2e-tests/util/playwright.ts index 6c838ca2a49..ed5fb01b6df 100644 --- a/web-console/e2e-tests/util/playwright.ts +++ b/web-console/e2e-tests/util/playwright.ts @@ -19,8 +19,8 @@ import * as playwright from 'playwright-chromium'; const TRUE = 'true'; -const WIDTH = 1920; -const HEIGHT = 1080; +const WIDTH = 1250; +const HEIGHT = 760; const PADDING = 128; export async function createBrowser(): Promise { @@ -40,6 +40,25 @@ export async function createPage(browser: playwright.Browser): Promise { + if (response.status() < 400) return; + + const request = response.request(); + let bodyText: string; + try { + bodyText = await response.text(); + } catch (e) { + bodyText = `Could not get the body of the error message due to: ${e.message}`; + } + + console.log(`==============================================`); + console.log(`Request failed on ${request.url()} (with status ${response.status()})`); + console.log(`Body: ${bodyText}`); + console.log(`==============================================`); + }); + return page; }