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
2 answers

FusionAuth oAuth not working with TestCafe

I am failing to correctly login through the UI with the testing framework TestCafe. Our company uses FusionAuth for authentication which lives on a separate Domain from the application I am looking to test. At the moment im just trying to develop a…
littlevahn
  • 637
  • 2
  • 8
  • 25
0
votes
0 answers

Testcafe workflow for IE on Window on Github Actions: Error: The action has timed out

After a couple of regression in our app undre Internet Explorer (IE11), we decided to setup a dedicated CI workflow to prevent them anyfurther. So we went with testcafe, but the setup is more complicated than with Cypress. Currently my tests are…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
0
votes
1 answer

Page title is showing auto-generated text instead of the real page title name using TestCafe

I have created a simple test via TestCafe which check that Google Home Page has appropriate page title. By page title here I meant title text which is located in Google But when I run it locally via using t.debug() I see…
0
votes
1 answer

Should I assert for existing before assertion for Selector property?

Documentation states that "When a selector is executed, TestCafe waits for the target node to appear in the DOM until the selector timeout expires." and we don't use expect(Selector.exists).ok() in code sample below the statement. However in…
0
votes
1 answer

Does Testcafe retry assertions with Selector.count and Selector.exists?

In testcafe documentation I found that assertions with count and exists "execute immediately regardless of the selector timeout". However in wait-mechanism-for-assertions paragraph documentation states that "TestCafe keeps recalculating the actual…
0
votes
1 answer

How to setup a Github Action workflow to test React App on Windows/IE11 virtual machine?

I'm in the process of setting-up a Github Action workflow to test my app using testcafe on IE11 (Internet Explorer). name: Tests on: push: branches: - master pull_request: types: [opened, reopened, synchronize,…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
0
votes
1 answer

how to use dynamic assertion method name?

Let's say I have this in a test: await t.expect(Selector('input')).ok() And I would like to have (something like) this: let func = 'ok'; await t.expect(Selector('input'))[func]() This is so that I can have a map from selector to function, in order…
0
votes
2 answers

How to print test environment in slack report using testcafe

My .testcaferc.json file looks like this { "reporter": [ { "name": "spec" }, { "name": "slack-custom", "options": { "webhookUrl": "https://hooks.slack.com/services/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", "loggingLevel":…
0
votes
1 answer

Call Testcafe Client Function with Parameters

I am new to Testcafe and implementing a Client Function to read all Cookies by Name that are set by the Website to be tested, as there is no direct way to read all the Cookies in Testcafe and check if a Cookie has a certain name; hence, a Client…
DWA
  • 530
  • 1
  • 5
  • 29
0
votes
1 answer

testcafe seems to not be compatible with last version of logSymbol

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…
0
votes
1 answer

TestCafe oncePerFixture Error when running

I am trying to use oncePerFixture feature in TestCafe and get an error: “TypeError: Cannot read property “testRun” of undefined. I cannot figute out what is the problem?
0
votes
0 answers

testcafe failing to connect to server when using --proxy option

I'm trying to run testcafe in our pipeline (Semaphore) using a docker image based on the official one, where the only additions are copying our tests inside it and install some other additional npm packages used by them. Those tests run against a…
ejosafat
  • 401
  • 2
  • 12
0
votes
2 answers

Checking if no Cookie exists and if a Cookie exists, delete the Cookie in Testcafe

I am new to Testcafé and working on a Testcase to check if no Cookies exist beforehand and if there is a cookie, to delete the Cookie. I have checked this and this post but don´t see any option on how to check if a cookie does exist or does not…
DWA
  • 530
  • 1
  • 5
  • 29
0
votes
1 answer

TestCafe sending only one request

I created a test to check if the synchronization button works correctly. After clicking the button, the requests for the documents (items) are sent. When I run the test with TestCafe, it requests only for the first element and then stops, even if…
0
votes
0 answers

Testcafe - How do I use document.querySelector for identical shadow doms?

This question might come of as silly because of my lack of knowledge, but I'm struggling to understand how do I use document.querySelector for identical shadow doms. Let's say we have 2 shadowDoms that are identical, visible at the same time and you…