From cc5a8cbd7c611bbd26241d26b17a9a511fff1c5a Mon Sep 17 00:00:00 2001 From: Matt307082 Date: Mon, 5 Aug 2024 12:15:28 +0200 Subject: [PATCH] increase driver window size --- var/www/html/tests/console.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/www/html/tests/console.test.js b/var/www/html/tests/console.test.js index 5b856be..348ec8b 100644 --- a/var/www/html/tests/console.test.js +++ b/var/www/html/tests/console.test.js @@ -9,7 +9,8 @@ options.setBinaryPath('/opt/google/chrome/google-chrome'); // parsing command line arguments to retrieve the URL to test const args = process.argv.slice(2); const urlArg = args.find(arg => arg.startsWith('--url=')); -const URL = urlArg ? urlArg.split('=')[1] : null; +//const URL = urlArg ? urlArg.split('=')[1] : null; +const URL = "http://192.168.7.144:30443" describe('console service front-end tests', function(){ @@ -17,6 +18,7 @@ describe('console service front-end tests', function(){ beforeAll(async function(){ driver = await new webdriver.Builder().forBrowser(webdriver.Browser.CHROME).setChromeOptions(options).build(); + await driver.manage().window().setRect({ width: 1400, height: 768 }); }, 30000); afterAll(async function(){