-
Notifications
You must be signed in to change notification settings - Fork 661
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
Assertion Failure Is throwing Uncaught exception #6861
Comments
Thank you for reporting this. I was able to reproduce the issue. |
Hi, I am running into a similar issue, can someone please provide me a solution here. Thank you. |
There are no workarounds. Once we get any updates, we will post them in this thread. |
Hi @aprabh001c, TestCafe runs tests using the URL-rewritten proxy. // Command-line
testcafe chrome tests --experimental-proxyless
// Programmatic
const testcafe = await createTestCafe({ experimentalProxyless: true });
// Configuration file
{
"experimentalProxyless": "true"
} Note that at present it is an experimental mode. |
Node Version - 19.3.0 When experimentalProxyless=true, testcafe is not clicking _search button( or after clicking browser is not responding) and it fails Script Used to reproduce with Public Website fixture test( await t.navigateTo("https://www.xfinity.com/learn/offers"); }) |
Hi @aprabh001c, This issue is not reproduced with combination of |
What is your Scenario?
When TestCase fail due to assertion, it throws an uncaught exception, sometime it leads to testcase termination. Which is affecting automated run. I have tried to replicate this issue in a public website. Please refer details in respective sections
What is the Current behavior?
AssertionError: expected false to be truthy
Browser: Chrome 97.0.4692.99 / Windows 10
Uncaught exception:
Error [ERR_HTTP2_SESSION_ERROR]: Session closed with error code 11
at Http2Session.onGoawayData (internal/http2/core.js:649:21)
at Http2Session.callbackTrampoline (internal/async_hooks.js:134:14)
Browser: Chrome 97.0.4692.99 / Windows 10
TestCafe Version - 1.18.2
Node Version - v14.17.0
What is the Expected behavior?
Test should fail without any exception.
What is your public website URL? (or attach your complete example)
https://www.xfinity.com/learn/offers
What is your TestCafe test code?
import {t, Selector} from 'testcafe'
fixture
UnHandledException
test(
UnhandledExceptionTC
, async tn=>{await t.navigateTo("https://www.xfinity.com/learn/offers");
await t.wait(10000);
await t.expect(Selector('#localization-address-fieldJunk').visible).ok()
})
Your complete configuration file
No response
Your complete test report
No response
Screenshots
Uncaught exception:
Error [ERR_HTTP2_SESSION_ERROR]: Session closed with error code 11
at Http2Session.onGoawayData (internal/http2/core.js:649:21)
at Http2Session.callbackTrampoline (internal/async_hooks.js:134:14)
Browser: Chrome 97.0.4692.99 / Windows 10
Steps to Reproduce
TestCafe version
1.18.2
Node.js version
v14.17.0
Command-line arguments
testcafe chrome -F UnHandledException
Browser name(s) and version(s)
Chrome 97.0.4692.99
Platform(s) and version(s)
Windows 10
Other
No response
The text was updated successfully, but these errors were encountered: