Questions tagged [testcafe]

TestCafe and TestCafe Studio - end-to-end testing, simplified. Questions from users of the open-source TestCafe and TestCafe Studio community edition subscribers.

Resources

1850 questions
0
votes
1 answer

TestCafe chrome:headless intermittently fails with Vue event emit

Chrome: Version 91.0.4472.114 (Official Build) (x86_64) TestCafe: 1.14.2 Vue codes Template
Daenam Kim
  • 127
  • 6
0
votes
1 answer

TestCafe & NIVO Issue

I've a question. Did anyone experience a problem that I've with running TestCafe and hitting NIVO? All tests that hitting NIVO are failing with the following error message: A JavaScript error occurred on…
0
votes
1 answer

NodeJs/TestCafe : FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

While running my testscripts in node v14.6.0, i'm seeing the below issue. Options tried - I tried to increasing the Node Heap Size , but no luck export NODE_OPTIONS=--max_old_space_size=4096 added the below in package.json "start": "react-scripts…
Chaitanya Maligi
  • 217
  • 4
  • 7
  • 19
0
votes
1 answer

testcafe, how to wait for SpringBoot app to be started

I am using testcafe to test an app served through SpringBoot. I am successfully using appCommand to start the app before launching the tests. However, the app takes a bit to start (10-30 seconds, depending on the environment and load) so I need to…
Javier Sedano
  • 923
  • 3
  • 11
  • 28
0
votes
1 answer

TestCafe passed test twice instead of one time

TestCafe passed test twice instead of just 1 time Here's my testcafe config : const createTestCafe = require('testcafe'); createTestCafe('localhost', 1337, 1338) .then(tc => { testcafe = tc; process.env.loginUrl =…
0
votes
1 answer

Runner.run parameter not available

In the documentation it's said that it's possible to use options to configure the runner. I would like to use the disableMultipleWindows option runner.run({ disableMultipleWindows: true }); But I get the message : Argument of type '{…
0
votes
2 answers

How To Split TestCafe Tests?

We have around 400+ TestCafe js files and we are running these tests nightly through our CI/CD pipeline. Our problem right now is that, it consumes a lot of hours before it completes the test. What we are planning to do is to split up those tests…
0
votes
1 answer

Looking for a "legit" way to be able to log a Selector's function chain

I find that I often want to be able to log out what a Selector was looking for at various times during execution. I couldn't find a "legit" way to do this so I worked around it by creating the following function: function printSelector(selector)…
0
votes
1 answer

Testcafe mock request/response with query parameters

I am trying to mock a response for a request that uses query params. I've already used onrequestto in other tests, and it works seamlessly. There is already a similar question to what I am asking, but the answer does not work for me whatever I do…
0
votes
1 answer

How to get a value from a promise and store it in a variable for further use

How to get a value from a promise and store it in a variable for further use. I am expecting my method to return a passoword as string rather than a resolved promise object. I need passoword string so that I can pass it to httpAuth function given…
Swami
  • 3
  • 2
0
votes
1 answer

TestCafe doesn't support clipboard

I just trying copy / paste text from gmail to another input, and realized that the cafe test doesn't support ctrl-c, ctrl-v. Here's what I tried to do: pom: import { Selector, t} from 'testcafe'; class LoginPage { copyStepCarrierPassword:…
0
votes
0 answers

Few tests fail only docker instance

I have around 60 test cases which runs in sequential. When the test reaches 50 plus then the remaining test cases fail at application log in page itself. Not sure what is happening in the docker.the 50-60 test case series works fine in my local and…
0
votes
1 answer

TestCafe Visibility check techniques

Is there any functional difference between: await t.expect(Selector('button').visible).ok(); and await Selector('button', {visibilityCheck: true}) ? As I understand, it does the same thing? If the selector is not visible the test will fail in both…
0
votes
2 answers

How to pass the API Response Time from a Fetch function to another async function?

I am able to get the API Response Time (duration) in the 'makeAPICall' function. Now I need to pass it(the value of the duration variable)to another async function. I am wondering if you could please provide the solution? const makeApiCall =…
Negin
  • 2,332
  • 17
  • 22
0
votes
1 answer

Error integrating TestCafe with Azure Devops

I am following this tutorial on integrating TestCafe with Azure Devops https://testcafe.io/documentation/402822/guides/continuous-integration/azure-devops. I run the script npm run test testcafe which locally runs testcafe. I also tried npm run…
Aaron
  • 4,380
  • 19
  • 85
  • 141