Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkipJsErrors RegExp parsed incorrectly when set through CLI #7301

Closed
Artem-Babich opened this issue Sep 23, 2022 · 1 comment
Closed

SkipJsErrors RegExp parsed incorrectly when set through CLI #7301

Artem-Babich opened this issue Sep 23, 2022 · 1 comment
Assignees
Labels
TYPE: bug The described behavior is considered as wrong (bug).

Comments

@Artem-Babich
Copy link
Contributor

What is your Scenario?

Run tests with the following params:
testcafe chrome test.js -e message="/.*User ID.*/ig"

And call the following code on page:
throw new Error('User ID');

What is the Current behavior?

The error is not skipped.

What is the Expected behavior?

The error must be skipped.

What is your public website URL? (or attach your complete example)

localhost

What is your TestCafe test code?

does not matter

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

Run tests with the following params:
testcafe chrome test.js -e message="/.*User ID.*/ig"

And call the following code on page:
throw new Error('User ID');

TestCafe version

2.0.1-rc.1

Node.js version

any

Command-line arguments

-e message="/.User ID./ig"`

Browser name(s) and version(s)

any

Platform(s) and version(s)

any

Other

No response

@github-actions
Copy link

Release v2.0.2-rc.1 addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

1 participant