await waitFor(element(by.id('CHECKOUT.SUCCESS_MESSAGE'))) .toHaveText('Payment complete') .withTimeout(8000);