Created
June 18, 2021 20:01
-
-
Save dannyshain/5d6f2ad8c56f39f739e3aadb2e6788bd to your computer and use it in GitHub Desktop.
This file contains 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
import { Selector } from 'testcafe'; | |
fixture`The Kitchen - Select` | |
.page`https://kitchen.applitools.com/ingredients/select` | |
const ingredientsSelect = Selector('#spices-select-single'); | |
const ingredientsOption = ingredientsSelect.find('option'); | |
test('TestCafe', async t => { | |
await t | |
.click(ingredientsSelect) | |
.click(ingredientsOption.withText('Garlic')) | |
.expect(ingredientsSelect.value).eql('garlic'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment