From 0ec6d652f74c337b29bb49acd965cf6807b5b1d7 Mon Sep 17 00:00:00 2001 From: Daniel Sami Date: Mon, 4 Mar 2019 11:53:35 -0500 Subject: [PATCH] check for 404s --- awx/ui/test/e2e/tests/test-404-behavior.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 awx/ui/test/e2e/tests/test-404-behavior.js diff --git a/awx/ui/test/e2e/tests/test-404-behavior.js b/awx/ui/test/e2e/tests/test-404-behavior.js new file mode 100644 index 0000000000..608ce00d34 --- /dev/null +++ b/awx/ui/test/e2e/tests/test-404-behavior.js @@ -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(); + } +};