-
-
Save santaclauze/aebf3d46da37c5c0d59d06feef4402e5 to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('redirects me to order process after selecting a product', async () => { | |
const productSelectButton = `button#select-product-${classic.id}`; | |
await page.waitForSelector(productSelectButton); | |
await expect(page).toMatchElement(productSelectButton, { text: 'Select Product' }); | |
await expect(page).toClick(productSelectButton, { text: 'Select Product' }); | |
await clickOnMatchingButton('Order Now'); | |
await page.waitFor(TIME_OUT); | |
await expect(page.url()).toMatch(orderWithId); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment