From 4c8e67bb0b015ab9ce49fed0340035078eb415c2 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Fri, 6 Sep 2019 16:29:06 +0200 Subject: [PATCH] mgr/dashboard: Improve images e2e test The 'should move the image to the trash' e2e fails because the datatable content has not been updated at the time the test checks for the existence of the deleted image. To fix that the helper function waits until the presence of the datatable row (the same approach is done by other helper functions, too). Signed-off-by: Volker Theile --- src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts | 1 + 1 file changed, 1 insertion(+) 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 a8e938295e4..3483972dae0 100644 --- a/src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts +++ b/src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts @@ -97,6 +97,7 @@ export class ImagesPageHelper extends PageHelper { // Clicks trash tab await this.waitClickable(element(by.cssContainingText('.nav-link', 'Trash'))); await element(by.cssContainingText('.nav-link', 'Trash')).click(); + await this.waitPresence(this.getTableCell(name)); } // Checks trash tab table for image and then restores it to the RBD Images table -- 2.47.3