gherkin-testcafe | Run testcafe tests with gherkin syntax | Functional Testing library
kandi X-RAY | gherkin-testcafe Summary
kandi X-RAY | gherkin-testcafe Summary
Run testcafe tests with gherkin syntax
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gherkin-testcafe
gherkin-testcafe Key Features
gherkin-testcafe Examples and Code Snippets
Community Discussions
Trending Discussions on gherkin-testcafe
QUESTION
I try to use last version of LogSymbol, that provides a breaking change due to esm compatibility.
But using Gherkin-testcafe and then testcafe, it seem compilation failed due to no esm support.
I don't why I get this error from testcafe: 1
if I try to override testcafe typescript compilation options but I get this error: 2
A sample of project with my issue is avalaible here: https://github.com/bbutel/testcafe-logSymbol-issues
...ANSWER
Answered 2021-Jul-06 at 08:39TestCafe cannot work with pure ESM modules like logSymbols
because built-in TestCafe compilers transpile all test code to the commonjs
format, which in not supported by the latest version of logSymbols
. Thus, to solve the issue, you need to use the commonjs
version of the logSymbols
module.
QUESTION
We are "successfully" running our gherkin-testcafe build on ec2 headless against chromium. The final issue we are dealing with is that at a certain point in the test a CTA button is showing ...loading instead of Add to Bag, presumably because a service call that gets the status of the product, out of stock, in stock, no longer carry, etc. is failing. The tests work locally of course and we have the luxury of debugging locally opening chrome's dev env and inspecting the network calls etc. But all we can do on the ec2 is take a video and see where it fails. Is there a way to view the logs of all the calls being made by testcafe's proxy browser so we can confirm which one is failing and why? We are using.
const rlogger = RequestLogger(/.*/, {
logRequestHeaders: true,
logResponseHeaders: true
});
to log our headers but not getting very explicit reasons why calls are not working.
...ANSWER
Answered 2020-Nov-02 at 07:57TestCafe uses the debug module to perform internal logging functionality. So, in order to view the TestCafe proxy logs, you can set the DEBUG
environment variable in the following manner:
QUESTION
We are developing a web application which we are creating UI tests with Testcafe 1.5. All of the sites we are testing are HTTPS. Our tests are either run locally or on SauceLabs (for multi browser testing).
We have been successfully testing for a long time using either the browser settings:
- "chrome:headless --allow-insecure-localhost"
- "chrome --allow-insecure-localhost"
- "saucelabs:Chrome@76.0:Windows 10"
Local Chrome version is 80. To do this, we use the following code:
...ANSWER
Answered 2020-Feb-24 at 10:36Based on the TestCafe Test HTTPS and HTTP/2 Websites topic, you need to explicitly set a flag for each browser so that they don't restrict the use of the self-signed certificate.
For instance, in Firefox, you can toggle the network.websocket.allowInsecureFromHTTPS
option (Is there a equivalent of allow-insecure-localhost flag of Google Chrome in Firefox?). For IE, you can specify a similar argument if it is available (IE10 websocket allowInsecureFromHttps).
As for the saucelab testing, you would want to pass the corresponding browser arguments when running tests. However, note that the saucelabs browser provider does not support passing arguments to browser aliases (https://github.com/DevExpress/testcafe-browser-provider-saucelabs/issues/48).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gherkin-testcafe
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page