]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Improve images e2e test 30212/head
authorVolker Theile <vtheile@suse.com>
Fri, 6 Sep 2019 14:29:06 +0000 (16:29 +0200)
committerVolker Theile <vtheile@suse.com>
Fri, 6 Sep 2019 14:29:06 +0000 (16:29 +0200)
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 <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/e2e/block/images.po.ts

index a8e938295e460dbe9f13ba096f2400afa12a577e..3483972dae022e60d294689a316fad161692d90d 100644 (file)
@@ -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