mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Merge pull request #4417 from ansible/stability-e2e
Stability for e2e websockets Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
50c0867156
@ -84,7 +84,7 @@ module.exports = {
|
|||||||
'Test projects list blinking icon': client => {
|
'Test projects list blinking icon': client => {
|
||||||
client
|
client
|
||||||
.useCss()
|
.useCss()
|
||||||
.findThenClick('[ui-sref=projects]', 'css')
|
.navigateTo(`${AWX_E2E_URL}/#/projects`)
|
||||||
.waitForElementVisible('.SmartSearch-input')
|
.waitForElementVisible('.SmartSearch-input')
|
||||||
.clearValue('.SmartSearch-input')
|
.clearValue('.SmartSearch-input')
|
||||||
.setValue(
|
.setValue(
|
||||||
@ -92,6 +92,7 @@ module.exports = {
|
|||||||
['name.iexact:"test-websockets-project"', client.Keys.ENTER]
|
['name.iexact:"test-websockets-project"', client.Keys.ENTER]
|
||||||
);
|
);
|
||||||
getUpdatedProject('test-websockets');
|
getUpdatedProject('test-websockets');
|
||||||
|
getUpdatedProject('test-websockets'); // occasionally 1st update is too quick
|
||||||
|
|
||||||
client.expect.element('i.icon-job-running')
|
client.expect.element('i.icon-job-running')
|
||||||
.to.be.visible.before(AWX_E2E_TIMEOUT_ASYNC);
|
.to.be.visible.before(AWX_E2E_TIMEOUT_ASYNC);
|
||||||
@ -136,14 +137,17 @@ module.exports = {
|
|||||||
'Test project blinking icon within an organization view': client => {
|
'Test project blinking icon within an organization view': client => {
|
||||||
client
|
client
|
||||||
.useCss()
|
.useCss()
|
||||||
.navigateTo(`${AWX_E2E_URL}/#/organizations/${data.org.id}/projects`, false)
|
.navigateTo(`${AWX_E2E_URL}/#/organizations/${data.org.id}/projects`)
|
||||||
.waitForElementVisible('.projectsList .SmartSearch-input')
|
.waitForElementVisible('.projectsList .SmartSearch-input')
|
||||||
.clearValue('.projectsList .SmartSearch-input')
|
.clearValue('.projectsList .SmartSearch-input')
|
||||||
.setValue(
|
.setValue(
|
||||||
'.projectsList .SmartSearch-input',
|
'.projectsList .SmartSearch-input',
|
||||||
['test-websockets-project', client.Keys.ENTER]
|
['test-websockets-project', client.Keys.ENTER]
|
||||||
);
|
);
|
||||||
|
client.useXpath().waitForElementVisible('//i[contains(@class, "icon-job")]');
|
||||||
|
client.useCss();
|
||||||
getUpdatedProject('test-websockets');
|
getUpdatedProject('test-websockets');
|
||||||
|
getUpdatedProject('test-websockets'); // sometimes project update is too fast
|
||||||
|
|
||||||
client.expect.element('i.icon-job-running')
|
client.expect.element('i.icon-job-running')
|
||||||
.to.be.visible.before(AWX_E2E_TIMEOUT_ASYNC);
|
.to.be.visible.before(AWX_E2E_TIMEOUT_ASYNC);
|
||||||
@ -151,7 +155,7 @@ module.exports = {
|
|||||||
.to.be.visible.before(AWX_E2E_TIMEOUT_ASYNC);
|
.to.be.visible.before(AWX_E2E_TIMEOUT_ASYNC);
|
||||||
},
|
},
|
||||||
'Test job slicing sparkline behavior': client => {
|
'Test job slicing sparkline behavior': client => {
|
||||||
client.findThenClick('[ui-sref=dashboard]', 'css');
|
client.navigateTo(`${AWX_E2E_URL}/#/home`, false);
|
||||||
getJob('test-websockets', 'debug.yml', 'test-ws-split-job-template', false);
|
getJob('test-websockets', 'debug.yml', 'test-ws-split-job-template', false);
|
||||||
|
|
||||||
client.useXpath().expect.element(`${sparklineIcon}[1]${running}`)
|
client.useXpath().expect.element(`${sparklineIcon}[1]${running}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user