mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
check for 404s
This commit is contained in:
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();
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user