diff --git a/core/modules/ckeditor5/tests/src/Nightwatch/Tests/ckEditor5EditorHeightTest.js b/core/modules/ckeditor5/tests/src/Nightwatch/Tests/ckEditor5EditorHeightTest.js index d5285eb6abc753e7b135009df36b1204677858cb..a1b76110eb7a4954504dc4a6258f2663783b00c3 100644 --- a/core/modules/ckeditor5/tests/src/Nightwatch/Tests/ckEditor5EditorHeightTest.js +++ b/core/modules/ckeditor5/tests/src/Nightwatch/Tests/ckEditor5EditorHeightTest.js @@ -10,7 +10,7 @@ module.exports = { .drupalInstallModule('node', true); // Set fixed (desktop-ish) size to ensure a maximum viewport. - browser.resizeWindow(1920, 1080); + browser.window.resize(1920, 1080); }, after(browser) { browser.drupalUninstall(); diff --git a/core/modules/toolbar/tests/src/Nightwatch/Tests/toolbarTest.js b/core/modules/toolbar/tests/src/Nightwatch/Tests/toolbarTest.js index a87b3982780fadb0b5388ea9f38e91d8a534495f..cbba417abe3a3168b372d6801cf626c123b59a06 100644 --- a/core/modules/toolbar/tests/src/Nightwatch/Tests/toolbarTest.js +++ b/core/modules/toolbar/tests/src/Nightwatch/Tests/toolbarTest.js @@ -157,7 +157,7 @@ module.exports = { 'is-active toolbar-tray-horizontal', ); browser.assert.hasClass('#toolbar-administration', 'toolbar-oriented'); - browser.setWindowSize(263, 900); + browser.window.setSize(263, 900); browser.assert.hasClass( itemAdministrationTray, 'is-active toolbar-tray-vertical', @@ -165,10 +165,10 @@ module.exports = { browser.assert.not.hasClass(itemAdministration, 'toolbar-oriented'); }, 'Standard width toolbar breakpoint': (browser) => { - browser.setWindowSize(1000, 900); + browser.window.setSize(1000, 900); browser.waitForElementPresent(adminOrientationButton); browser.assert.hasClass('body', 'toolbar-fixed'); - browser.setWindowSize(609, 900); + browser.window.setSize(609, 900); browser.assert.hasClass( itemAdministrationTray, 'is-active toolbar-tray-vertical', @@ -177,7 +177,7 @@ module.exports = { }, 'Wide toolbar breakpoint': (browser) => { browser.waitForElementPresent(adminOrientationButton); - browser.setWindowSize(975, 900); + browser.window.setSize(975, 900); browser.assert.hasClass( itemAdministrationTray, 'is-active toolbar-tray-vertical', @@ -312,11 +312,11 @@ module.exports = { ); }, 'Locked toolbar vertical wide viewport': (browser) => { - browser.setWindowSize(1000, 900); + browser.window.setSize(1000, 900); browser.waitForElementPresent(adminOrientationButton); // eslint-disable-next-line no-unused-expressions browser.expect.element(adminOrientationButton).to.be.visible; - browser.setWindowSize(975, 900); + browser.window.setSize(975, 900); browser.assert.hasClass( itemAdministrationTray, 'is-active toolbar-tray-vertical', diff --git a/core/tests/Drupal/Nightwatch/Tests/Claro/claroPrimaryTabsTest.js b/core/tests/Drupal/Nightwatch/Tests/Claro/claroPrimaryTabsTest.js index 53e208c509101ea4714fd0088f01c5be1de7b5dc..142d66da780e215a948fbc0f4734f58b2bfdcc4e 100644 --- a/core/tests/Drupal/Nightwatch/Tests/Claro/claroPrimaryTabsTest.js +++ b/core/tests/Drupal/Nightwatch/Tests/Claro/claroPrimaryTabsTest.js @@ -19,7 +19,7 @@ module.exports = { permissions: ['administer nodes'], }) .drupalLogin({ name: 'user', password: '123' }); - browser.setWindowSize(1600, 800); + browser.window.setSize(1600, 800); }, after(browser) { browser.drupalUninstall(); @@ -33,8 +33,8 @@ module.exports = { .assert.not.visible(mobileToggle); }, 'Verify mobile tab display and click functionality': (browser) => { - browser - .setWindowSize(699, 800) + browser.window + .setSize(699, 800) .drupalRelativeURL('/node/1') .waitForElementVisible(primaryTabsWrapper) .assert.visible(activeTab) diff --git a/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroDesktopMenuTest.js b/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroDesktopMenuTest.js index dbb4c02a57aefc0fd1209073abcf79112ba75232..a529fa8e31f715957b35c5a96b45b318253caf1a 100644 --- a/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroDesktopMenuTest.js +++ b/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroDesktopMenuTest.js @@ -21,7 +21,7 @@ module.exports = { .click('[data-drupal-selector="edit-actions-submit"]') .waitForElementVisible('body'); }); - browser.setWindowSize(1600, 800); + browser.window.setSize(1600, 800); }, after(browser) { browser.drupalUninstall(); diff --git a/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroPrimaryTabsTest.js b/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroPrimaryTabsTest.js index 429fc1d1008efb864c5a4924f51a6864f4b9455f..3de6c09019c7113bd8493fc7e30cb18a8948fb63 100644 --- a/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroPrimaryTabsTest.js +++ b/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroPrimaryTabsTest.js @@ -18,7 +18,7 @@ module.exports = { permissions: ['administer nodes'], }) .drupalLogin({ name: 'user', password: '123' }); - browser.setWindowSize(1600, 800); + browser.window.setSize(1600, 800); }, after(browser) { browser.drupalUninstall(); diff --git a/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroStickyHeaderToggleTest.js b/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroStickyHeaderToggleTest.js index 9fe9b59725f349ea2e9cd9aa4d7ab800d7f00b07..d3ddedc47d999837cbb3bfd62f20b3e734c16ffa 100644 --- a/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroStickyHeaderToggleTest.js +++ b/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroStickyHeaderToggleTest.js @@ -9,7 +9,7 @@ module.exports = { 'core/tests/Drupal/TestSite/TestSiteOliveroInstallTestScript.php', installProfile: 'minimal', }); - browser.setWindowSize(1400, 800); + browser.window.setSize(1400, 800); }, after(browser) { browser.drupalUninstall();