From c214f7debd80d59514bf757a49f36e3f0e982b7b Mon Sep 17 00:00:00 2001 From: stanislavchalapko Date: Wed, 18 Sep 2024 11:34:05 +0300 Subject: [PATCH] update version --- .../main-components/component-grid-layout.spec.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/components/main-components/component-grid-layout.spec.js b/tests/components/main-components/component-grid-layout.spec.js index 7e5dbf6b..65bb0166 100644 --- a/tests/components/main-components/component-grid-layout.spec.js +++ b/tests/components/main-components/component-grid-layout.spec.js @@ -17,6 +17,13 @@ const annotation = 'Test annotation for automation'; let teamPage,dashboardPage,mainPage,designPanelPage,layersPanelPage,inspectPanelPage,assetsPanelPage,colorPalettePage; test.beforeEach(async ({ page }) => { + const playwrightVersion = require('@playwright/test/package.json').version; + const browserVersion = await browser.version(); + const userAgent = await page.evaluate(() => navigator.userAgent); + + console.log('User-Agent:', userAgent); + console.log('WebKit version:', browserVersion); + console.log('Playwright version:', playwrightVersion); teamPage = new TeamPage(page); dashboardPage = new DashboardPage(page); mainPage = new MainPage(page); @@ -41,13 +48,7 @@ test.afterEach(async ({ page }, testInfo) => { mainTest.describe(() => { mainTest.beforeEach(async ({ page, browserName }, testInfo) => { - const playwrightVersion = require('@playwright/test/package.json').version; - const browserVersion = await browser.version(); - const userAgent = await page.evaluate(() => navigator.userAgent); - console.log('User-Agent:', userAgent); - console.log('WebKit version:', browserVersion); - console.log('Playwright version:', playwrightVersion); if (browserName === 'webkit') { await testInfo.setTimeout(testInfo.timeout + 20000); } else {