Merge pull request #3979 from elyezer/resize-window-e2e

e2e resize window on some specific tests

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-06-03 14:21:43 +00:00 committed by GitHub
commit 724ca9cd57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 7 deletions

View File

@ -31,7 +31,7 @@ module.exports = {
browserName: 'chrome',
chromeOptions: {
args: [
'window-size=1280,800'
'window-size=1024,768'
]
}
},

View File

@ -82,9 +82,11 @@ module.exports = {
'copy workflow template': client => {
const templates = client.page.templates();
client.useCss();
client.login();
client.waitForAngular();
client
.useCss()
.resizeWindow(1200, 800)
.login()
.waitForAngular();
templates.load();
templates.waitForElementVisible('div.spinny');

View File

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

View File

@ -73,9 +73,11 @@ module.exports = {
urls.jobsSchedules = `${pages.jobs.url()}/schedules`;
urls.inventoryHosts = `${pages.inventories.url()}/inventory/${data.host.summary_fields.inventory.id}/hosts`;
client.useCss();
client.login();
client.waitForAngular();
client
.useCss()
.login()
.waitForAngular()
.resizeWindow(1200, 800);
done();
});