Set window size globally on e2e

This commit is contained in:
Elyézer Rezende 2019-05-21 23:12:53 -04:00
parent 1ce587025e
commit 0aa8c7427d
19 changed files with 11 additions and 26 deletions

View File

@ -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,

View File

@ -22,7 +22,6 @@ module.exports = {
initializeData();
client.login();
client.resizeWindow(1200, 800);
client.waitForAngular();
},
'create organization': client => {

View File

@ -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);

View File

@ -12,7 +12,6 @@ module.exports = {
const credentials = client.page.credentials();
client.useCss();
client.resizeWindow(1200, 800);
client.login();
client.waitForAngular();

View File

@ -3,7 +3,6 @@ module.exports = {
const credentials = client.page.credentials();
client.login();
client.resizeWindow(1200, 800);
client.waitForAngular();
credentials

View File

@ -30,7 +30,6 @@ module.exports = {
client
.login()
.waitForAngular()
.resizeWindow(1200, 1000)
.useXpath()
.findThenClick(templatesNavTab)
.findThenClick('//*[@id="button-add"]')

View File

@ -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();

View File

@ -12,7 +12,6 @@ module.exports = {
const inventoryScripts = client.page.inventoryScripts();
client.useCss();
client.resizeWindow(1200, 800);
client.login();
client.waitForAngular();

View File

@ -7,7 +7,6 @@ let data;
module.exports = {
before: (client, done) => {
client.resizeWindow(1200, 800);
client.login();
client.waitForAngular();

View File

@ -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 => {

View File

@ -12,7 +12,6 @@ module.exports = {
const notifications = client.page.notificationTemplates();
client.useCss();
client.resizeWindow(1200, 800);
client.login();
client.waitForAngular();

View File

@ -66,7 +66,6 @@ module.exports = {
client
.login()
.waitForAngular()
.resizeWindow(1200, 1000)
.useXpath()
.findThenClick(teamsNavTab)
.clearValue(searchBar)

View File

@ -26,8 +26,7 @@ module.exports = {
client
.login()
.waitForAngular()
.resizeWindow(1200, 1000);
.waitForAngular();
},
'Test job template pagination': client => {
client

View File

@ -12,7 +12,6 @@ module.exports = {
const projects = client.page.projects();
client.useCss();
client.resizeWindow(1200, 800);
client.login();
client.waitForAngular();

View File

@ -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();

View File

@ -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();

View File

@ -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 => {

View File

@ -64,7 +64,6 @@ module.exports = {
client
.login()
.waitForAngular()
.resizeWindow(1200, 1000)
.navigateTo(`${AWX_E2E_URL}/#/templates`, false)
.useXpath()
.waitForElementVisible(workflowSearchBar)

View File

@ -75,7 +75,6 @@ module.exports = {
client.useCss();
client.login();
client.resizeWindow(1200, 800);
client.waitForAngular();
done();