From 59d7102f93af5542205baaeabb7e1b4da7237fc9 Mon Sep 17 00:00:00 2001 From: Eyo Okon Eyo Date: Tue, 12 Mar 2024 16:42:27 +0100 Subject: [PATCH] revert to keeping check for delete button --- test/functional/page_objects/home_page.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/functional/page_objects/home_page.ts b/test/functional/page_objects/home_page.ts index 8480c37607807..4225f52b16994 100644 --- a/test/functional/page_objects/home_page.ts +++ b/test/functional/page_objects/home_page.ts @@ -51,8 +51,9 @@ export class HomePageObject extends FtrService { const installStatus = await ( await sampleDataCard.findByCssSelector('[data-status]') ).getAttribute('data-status'); - - return installStatus === 'installed'; + const deleteButton = await sampleDataCard.findAllByTestSubject(`removeSampleDataSet${id}`); + this.log.debug(`Sample data installed: ${deleteButton.length > 0}`); + return installStatus === 'installed' && deleteButton.length > 0; } async isWelcomeInterstitialDisplayed() {