From 7cea1be101885eabdbca6554f6319f7d2364b336 Mon Sep 17 00:00:00 2001 From: Andrew Ballantyne Date: Fri, 21 Feb 2020 10:52:05 -0500 Subject: [PATCH] Fix the Deploy Image test by looking at the right location & value --- frontend/integration-tests/tests/deploy-image.scenario.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/integration-tests/tests/deploy-image.scenario.ts b/frontend/integration-tests/tests/deploy-image.scenario.ts index fc7a9193d8d..d33087f47c7 100644 --- a/frontend/integration-tests/tests/deploy-image.scenario.ts +++ b/frontend/integration-tests/tests/deploy-image.scenario.ts @@ -42,9 +42,12 @@ describe('Deploy Image', () => { const helperText = 'form-input-searchTerm-field-helper'; // Wait for the validation + await browser.wait( + until.presenceOf(element(by.css('.pf-m-success[data-test-id=deploy-image-search-term]'))), + ); await browser.wait(until.presenceOf(element(by.id(helperText)))); // Confirm the results appeared - expect(element(by.id(helperText)).isPresent()).toBe(true); + expect(element(by.id(helperText)).getText()).toEqual('Validated'); }); it('should auto fill in the application', async () => {