From 1d74499385c086ba0b239891eb8b88d24fcb24f4 Mon Sep 17 00:00:00 2001 From: mabashian Date: Thu, 24 May 2018 13:09:44 -0400 Subject: [PATCH] Added check to make sure that input contents match what we expect them to match --- awx/ui/test/e2e/tests/test-launch-jt.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/awx/ui/test/e2e/tests/test-launch-jt.js b/awx/ui/test/e2e/tests/test-launch-jt.js index c2127d8dda..8a36d0da0e 100644 --- a/awx/ui/test/e2e/tests/test-launch-jt.js +++ b/awx/ui/test/e2e/tests/test-launch-jt.js @@ -77,10 +77,9 @@ module.exports = { templates.section.list.section.search .sendKeys('@input', `id:${templateReferences.noPrompt.id}`); - // work in progress trying to check search input for correct text - // templates.section.list.section.search.getText('@input', function(result) { - // client.assert.equal(result.value, `id:${templateReferences.noPrompt.id}`); - // }); + templates.section.list.section.search.getValue('@input', function(result) { + client.assert.equal(result.value, `id:${templateReferences.noPrompt.id}`); + }); templates.section.list.section.search.click('i[class$="search"]'); templates.waitForElementVisible('div.spinny'); @@ -100,10 +99,15 @@ module.exports = { const templates = client.page.templates(); templates.load(); - templates.waitForElementVisible('input[class*="SmartSearch-input"]', 5000); + templates.waitForElementVisible('input[class*="SmartSearch-input"]'); templates.section.list.section.search .sendKeys('@input', `id:${templateReferences.promptNoPass.id}`); + + templates.section.list.section.search.getValue('@input', function(result) { + client.assert.equal(result.value, `id:${templateReferences.promptNoPass.id}`); + }); + templates.section.list.section.search.click('i[class$="search"]'); templates.waitForElementVisible('div.spinny');