Skip to content

Instantly share code, notes, and snippets.

@itsmunim
Created February 4, 2022 08:48
Show Gist options
  • Save itsmunim/5f75539be061a91cf5419487dfbad267 to your computer and use it in GitHub Desktop.
Save itsmunim/5f75539be061a91cf5419487dfbad267 to your computer and use it in GitHub Desktop.
scenario1:
matches:
- name: search experience
run:
actions:
- name: open dropdown
selector: id--filter-dropdown
type: click
- name: select prop type
selector: class--filter-prop-type
type: click
verification:
- name: api match
url: https://api.com?search=1
type: get
extract: listing-id
match:
selector: id--listing-card
mode: repeating
attribute: data-listing-id
- name: check results are present
selector: id--results
count: 10
scenario1:
matches:
- name: search experience
run:
actions:
- name: open dropdown
selector: id--filter-dropdown
type: click
- name: select prop type
selector: class--filter-prop-type
type: click
verification:
- name: api match
url: https://api.com?search=1
type: get
extract: listing-id
match:
selector: id--listing-card
mode: repeating
attribute: data-listing-id
- name: check results are present
selector: id--results
count: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment