From 9c8fab6608aa389382b37da46b6332bd58ef1788 Mon Sep 17 00:00:00 2001 From: Patrick Seidensal Date: Tue, 27 Aug 2019 12:39:48 +0200 Subject: [PATCH] mgr/dashboard: fix issue E2E image with unclickable element Signed-off-by: Patrick Seidensal --- src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts b/src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts index f867f46462b..b63fc929821 100644 --- a/src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts +++ b/src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts @@ -73,7 +73,7 @@ export class ImagesPageHelper extends PageHelper { await $('li.delete.ng-star-inserted').click(); // click delete // wait for pop-up to be visible (checks for title of pop-up) await browser.wait(Helper.EC.visibilityOf($('.modal-body')), Helper.TIMEOUT); - await $('.custom-control-label').click(); // click confirmation checkbox + await this.clickCheckbox($('.custom-control-label')); await element(by.cssContainingText('button', 'Delete RBD')).click(); await browser.wait(Helper.EC.stalenessOf(this.getTableCell(name)), Helper.TIMEOUT); } -- 2.39.5