mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 16:41:29 -03:30
Set window size globally on e2e
This commit is contained in:
parent
1ce587025e
commit
0aa8c7427d
@ -27,7 +27,14 @@ module.exports = {
|
||||
selenium_host: 'localhost',
|
||||
selenium_port: 9515,
|
||||
default_path_prefix: '',
|
||||
desiredCapabilities: { browserName: 'chrome' },
|
||||
desiredCapabilities: {
|
||||
browserName: 'chrome',
|
||||
chromeOptions: {
|
||||
args: [
|
||||
'window-size=1280,800'
|
||||
]
|
||||
}
|
||||
},
|
||||
test_workers: { enabled: false },
|
||||
globals: {
|
||||
launch_url: AWX_E2E_LAUNCH_URL,
|
||||
|
||||
@ -22,7 +22,6 @@ module.exports = {
|
||||
initializeData();
|
||||
|
||||
client.login();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.waitForAngular();
|
||||
},
|
||||
'create organization': client => {
|
||||
|
||||
@ -7,8 +7,7 @@ module.exports = {
|
||||
before: (client) => {
|
||||
client
|
||||
.login()
|
||||
.waitForAngular()
|
||||
.resizeWindow(1200, 1000);
|
||||
.waitForAngular();
|
||||
},
|
||||
'Test that default the 404 behavior redirects to the dashboard': client => {
|
||||
client.navigateTo(`${AWX_E2E_URL}#/brokenurl`, false);
|
||||
|
||||
@ -12,7 +12,6 @@ module.exports = {
|
||||
const credentials = client.page.credentials();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -3,7 +3,6 @@ module.exports = {
|
||||
const credentials = client.page.credentials();
|
||||
|
||||
client.login();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.waitForAngular();
|
||||
|
||||
credentials
|
||||
|
||||
@ -30,7 +30,6 @@ module.exports = {
|
||||
client
|
||||
.login()
|
||||
.waitForAngular()
|
||||
.resizeWindow(1200, 1000)
|
||||
.useXpath()
|
||||
.findThenClick(templatesNavTab)
|
||||
.findThenClick('//*[@id="button-add"]')
|
||||
|
||||
@ -24,7 +24,6 @@ module.exports = {
|
||||
const inventories = client.page.inventories();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
@ -81,7 +80,6 @@ module.exports = {
|
||||
const inventories = client.page.inventories();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -12,7 +12,6 @@ module.exports = {
|
||||
const inventoryScripts = client.page.inventoryScripts();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@ let data;
|
||||
|
||||
module.exports = {
|
||||
before: (client, done) => {
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -67,7 +67,6 @@ module.exports = {
|
||||
},
|
||||
'login to awx': client => {
|
||||
client.login();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.waitForAngular();
|
||||
},
|
||||
'expected jt launch with no prompts to navigate to job details': client => {
|
||||
|
||||
@ -12,7 +12,6 @@ module.exports = {
|
||||
const notifications = client.page.notificationTemplates();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -66,7 +66,6 @@ module.exports = {
|
||||
client
|
||||
.login()
|
||||
.waitForAngular()
|
||||
.resizeWindow(1200, 1000)
|
||||
.useXpath()
|
||||
.findThenClick(teamsNavTab)
|
||||
.clearValue(searchBar)
|
||||
|
||||
@ -26,8 +26,7 @@ module.exports = {
|
||||
|
||||
client
|
||||
.login()
|
||||
.waitForAngular()
|
||||
.resizeWindow(1200, 1000);
|
||||
.waitForAngular();
|
||||
},
|
||||
'Test job template pagination': client => {
|
||||
client
|
||||
|
||||
@ -12,7 +12,6 @@ module.exports = {
|
||||
const projects = client.page.projects();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -61,7 +61,6 @@ module.exports = {
|
||||
const templates = client.page.templates();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
@ -116,7 +115,6 @@ module.exports = {
|
||||
const templates = client.page.templates();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
@ -166,7 +164,6 @@ module.exports = {
|
||||
const templates = client.page.templates();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login(data.user.username);
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ module.exports = {
|
||||
const templates = client.page.templates();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
@ -84,7 +83,6 @@ module.exports = {
|
||||
const templates = client.page.templates();
|
||||
|
||||
client.useCss();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.login();
|
||||
client.waitForAngular();
|
||||
|
||||
|
||||
@ -54,8 +54,7 @@ module.exports = {
|
||||
|
||||
client
|
||||
.login()
|
||||
.waitForAngular()
|
||||
.resizeWindow(1200, 1000);
|
||||
.waitForAngular();
|
||||
},
|
||||
|
||||
'Test job template status updates for a successful job on dashboard': client => {
|
||||
|
||||
@ -64,7 +64,6 @@ module.exports = {
|
||||
client
|
||||
.login()
|
||||
.waitForAngular()
|
||||
.resizeWindow(1200, 1000)
|
||||
.navigateTo(`${AWX_E2E_URL}/#/templates`, false)
|
||||
.useXpath()
|
||||
.waitForElementVisible(workflowSearchBar)
|
||||
|
||||
@ -75,7 +75,6 @@ module.exports = {
|
||||
|
||||
client.useCss();
|
||||
client.login();
|
||||
client.resizeWindow(1200, 800);
|
||||
client.waitForAngular();
|
||||
|
||||
done();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user