Skip to content

Commit

Permalink
Fix e2e test when fulfilling /wc-admin/options endpoint
Browse files Browse the repository at this point in the history
There were more options added in `options` query parameter, so adding a
`.*` for the URL matching pattern
  • Loading branch information
ianlin committed Jul 8, 2024
1 parent fad9f34 commit e36ed4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/utils/mock-requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class MockRequests {
*/
async fulfillWCDefaultCountry( payload ) {
await this.fulfillRequest(
/wc-admin\/options\?options=woocommerce_default_country\b/,
/wc-admin\/options\?options=.*woocommerce_default_country\b/,
payload
);
}
Expand Down

0 comments on commit e36ed4d

Please sign in to comment.