1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

e2e resize window on some specific tests

This commit is contained in:
Elyézer Rezende 2019-05-28 15:13:15 -04:00
parent d8a80f9f3e
commit 39fb0d1679
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();
});