mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Added check to make sure that input contents match what we expect them to match
This commit is contained in:
committed by
Jake McDermott
parent
264b0f248a
commit
1d74499385
@@ -77,10 +77,9 @@ module.exports = {
|
|||||||
|
|
||||||
templates.section.list.section.search
|
templates.section.list.section.search
|
||||||
.sendKeys('@input', `id:${templateReferences.noPrompt.id}`);
|
.sendKeys('@input', `id:${templateReferences.noPrompt.id}`);
|
||||||
// work in progress trying to check search input for correct text
|
templates.section.list.section.search.getValue('@input', function(result) {
|
||||||
// templates.section.list.section.search.getText('@input', function(result) {
|
client.assert.equal(result.value, `id:${templateReferences.noPrompt.id}`);
|
||||||
// client.assert.equal(result.value, `id:${templateReferences.noPrompt.id}`);
|
});
|
||||||
// });
|
|
||||||
templates.section.list.section.search.click('i[class$="search"]');
|
templates.section.list.section.search.click('i[class$="search"]');
|
||||||
|
|
||||||
templates.waitForElementVisible('div.spinny');
|
templates.waitForElementVisible('div.spinny');
|
||||||
@@ -100,10 +99,15 @@ module.exports = {
|
|||||||
const templates = client.page.templates();
|
const templates = client.page.templates();
|
||||||
|
|
||||||
templates.load();
|
templates.load();
|
||||||
templates.waitForElementVisible('input[class*="SmartSearch-input"]', 5000);
|
templates.waitForElementVisible('input[class*="SmartSearch-input"]');
|
||||||
|
|
||||||
templates.section.list.section.search
|
templates.section.list.section.search
|
||||||
.sendKeys('@input', `id:${templateReferences.promptNoPass.id}`);
|
.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.section.list.section.search.click('i[class$="search"]');
|
||||||
|
|
||||||
templates.waitForElementVisible('div.spinny');
|
templates.waitForElementVisible('div.spinny');
|
||||||
|
|||||||
Reference in New Issue
Block a user