Merge pull request #3941 from elyezer/window-size-e2e

Set window size globally on e2e

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-05-24 20:23:45 +00:00
committed by GitHub
19 changed files with 11 additions and 26 deletions

View File

@@ -27,7 +27,14 @@ module.exports = {
selenium_host: 'localhost', selenium_host: 'localhost',
selenium_port: 9515, selenium_port: 9515,
default_path_prefix: '', default_path_prefix: '',
desiredCapabilities: { browserName: 'chrome' }, desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'window-size=1280,800'
]
}
},
test_workers: { enabled: false }, test_workers: { enabled: false },
globals: { globals: {
launch_url: AWX_E2E_LAUNCH_URL, launch_url: AWX_E2E_LAUNCH_URL,

View File

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

View File

@@ -7,8 +7,7 @@ module.exports = {
before: (client) => { before: (client) => {
client client
.login() .login()
.waitForAngular() .waitForAngular();
.resizeWindow(1200, 1000);
}, },
'Test that default the 404 behavior redirects to the dashboard': client => { 'Test that default the 404 behavior redirects to the dashboard': client => {
client.navigateTo(`${AWX_E2E_URL}#/brokenurl`, false); client.navigateTo(`${AWX_E2E_URL}#/brokenurl`, false);

View File

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

View File

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

View File

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

View File

@@ -24,7 +24,6 @@ module.exports = {
const inventories = client.page.inventories(); const inventories = client.page.inventories();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(); client.login();
client.waitForAngular(); client.waitForAngular();
@@ -81,7 +80,6 @@ module.exports = {
const inventories = client.page.inventories(); const inventories = client.page.inventories();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(); client.login();
client.waitForAngular(); client.waitForAngular();

View File

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

View File

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

View File

@@ -67,7 +67,6 @@ module.exports = {
}, },
'login to awx': client => { 'login to awx': client => {
client.login(); client.login();
client.resizeWindow(1200, 800);
client.waitForAngular(); client.waitForAngular();
}, },
'expected jt launch with no prompts to navigate to job details': client => { '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(); const notifications = client.page.notificationTemplates();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(); client.login();
client.waitForAngular(); client.waitForAngular();

View File

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

View File

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

View File

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

View File

@@ -61,7 +61,6 @@ module.exports = {
const templates = client.page.templates(); const templates = client.page.templates();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(); client.login();
client.waitForAngular(); client.waitForAngular();
@@ -116,7 +115,6 @@ module.exports = {
const templates = client.page.templates(); const templates = client.page.templates();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(); client.login();
client.waitForAngular(); client.waitForAngular();
@@ -166,7 +164,6 @@ module.exports = {
const templates = client.page.templates(); const templates = client.page.templates();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(data.user.username); client.login(data.user.username);
client.waitForAngular(); client.waitForAngular();

View File

@@ -26,7 +26,6 @@ module.exports = {
const templates = client.page.templates(); const templates = client.page.templates();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(); client.login();
client.waitForAngular(); client.waitForAngular();
@@ -84,7 +83,6 @@ module.exports = {
const templates = client.page.templates(); const templates = client.page.templates();
client.useCss(); client.useCss();
client.resizeWindow(1200, 800);
client.login(); client.login();
client.waitForAngular(); client.waitForAngular();

View File

@@ -54,8 +54,7 @@ module.exports = {
client client
.login() .login()
.waitForAngular() .waitForAngular();
.resizeWindow(1200, 1000);
}, },
'Test job template status updates for a successful job on dashboard': client => { 'Test job template status updates for a successful job on dashboard': client => {

View File

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

View File

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