mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
check for 404s
This commit is contained in:
parent
6384e638f5
commit
0ec6d652f7
22
awx/ui/test/e2e/tests/test-404-behavior.js
Normal file
22
awx/ui/test/e2e/tests/test-404-behavior.js
Normal file
@ -0,0 +1,22 @@
|
||||
import {
|
||||
AWX_E2E_URL
|
||||
} from '../settings';
|
||||
|
||||
module.exports = {
|
||||
before: (client) => {
|
||||
|
||||
client
|
||||
.login()
|
||||
.waitForAngular()
|
||||
.resizeWindow(1200, 1000);
|
||||
},
|
||||
'Verify 404 page behavior': client => {
|
||||
client.navigateTo(AWX_E2E_URL + '#/brokenurl', false);
|
||||
client.useXpath().waitForElementVisible('//job-status-graph');
|
||||
client.assert.urlContains('#/home');
|
||||
},
|
||||
|
||||
after: client => {
|
||||
client.end();
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user