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>
// 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