Questions tagged [e2e-testing]

End-to-end testing is a methodology used to test whether the flow of an application is performing as designed from start to finish. The purpose of carrying out end-to-end tests is to identify system dependencies and to ensure that the right information is passed between various system components and systems.

3036 questions
1
vote
1 answer

2 testcafe runner with promise.race but how to run these together?

I have 2 runner.js in testcafe and I want to run these 2 runners together, how should I do that? runner1.js const createTestCafe = require('testcafe'); let testcafe = null; createTestCafe() .then(tc => { testcafe = tc; const runner =…
TS0306
  • 177
  • 12
1
vote
2 answers

Click action doesn't have the option timeout

The click action is taking time to click on hierarchy nodes, I decreased the selector timeout to lesser time and then it clicks the nodes more quickly than before, however, I don't want to decrease the selector timeout as it will affect all the…
chris
  • 119
  • 1
  • 6
1
vote
2 answers

Is there a way to specify a dynamic report filename in TestCafe

I am writing the output of my TestCafe to file. I was wondering if it can be a dynamic path like a screenshot path. I tried using something like the values listed here, but I think this is only for screenshots and…
1
vote
3 answers

Getting TestCafe to recognize dotenv variables

I might be mixing up concepts, but I'd read that it's possible to get TestCafe to recognize variables of the form process.env.MY_COOL_VARIABLE. Also for my Vue.js frontend (built using Vue-CLI, which uses dotenv under the hood), I found I could make…
Ann Kilzer
  • 1,266
  • 3
  • 16
  • 39
1
vote
1 answer

Is it possible to use metadata inside the test script?

Is there a way to do an IF condition on the metadata in the test script? For e.g test.meta({ tablet: ‘true’, portrait: 'false', landscape: 'true' })(‘L0 | Tablet device’, async t => { // Verify component exists in portrait and landscape mode …
user6353963
1
vote
1 answer

How do I convert a Chrome Selector path to a testCafe Selector

How do I convert the selector string that I copy from chrome by using Inspect > Copy > Copy Selector to something that I can use inside of a testCafe Selector? Chrome gives me this: body div#root div div.fullindy div.container div.row div.col-md-8…
1
vote
1 answer

Call an element across test in testcafe using javascript

I want to use an element across a test case Call an element across test case: orderIDReplace is element from the selected element in test create order (fixture app). I want to use/call orderIDReplace in test receive order (fixture backend) fixture…
1
vote
1 answer

TestCafe & chrome:headless : how to force the browser language (locale)

I have write a few browser test who run with TestCafe, chrome:headless. The test are launched by commandline, from a server that I don't want to change the default language. My website is multi-language. I want to be change the language of the test,…
sab
  • 4,352
  • 7
  • 36
  • 60
1
vote
1 answer

master runner in testcafe for several other runners?

I have several runners which are using promise.race to complete the testcase at a particular time Say I have runner1.js, runner2.js runner3.js, how do I create a master runner so that I can run all these runners together? const createTestCafe =…
1
vote
1 answer

having issues while clicking on a dropdown window with edit or delete button inside the dropdown

compare 1 with 2 & 1 with 3, can click edit when I exclude await from expect or when I do await t.expect with await 1. await t.expect(DetailsPage.commentsBody.find(`.dropdown-menu.show`).exists).ok(`comments drop down menu unavailable`) …
chris
  • 119
  • 1
  • 6
1
vote
3 answers

"Uncaught SyntaxError: Invalid or unexpected token" occurs when running e2e test for the angular app using cypress framework

I'm using cypress to do e2e testing for our angular app, when cypress auto-open the app home page,the error occurs,and in the browser console print "Uncaught SyntaxError: Invalid or unexpected token" just as show in the screenshot attached, it's…
jxgin
  • 13
  • 1
  • 3
1
vote
1 answer

How do regression tests best fit within a CI/CD workflow?

I'm writing an API that consists of several microservices. I have the code in a private Gitlab repo. I have a custom CI/CD pipeline configured to run a couple of different steps automatically on every commit to master (e.g. build, test, deploy to a…
1
vote
1 answer

How to find which variable is greater with cypress

Pls help me. I have a 2 variables and want to know which variable is greater with cypress. Like this: if(rejectedCount > sortedCount){ return true } else return false Are there any assertion for it. This is my code…
Narine Poghosyan
  • 853
  • 3
  • 16
  • 26
1
vote
1 answer

How does TestCafé calculate the size of the element screenshot from a selector?

We're trying to debug an issue we're seeing between TestCafé and Chrome in that (for a base use case) we're seeing extra pixels added to the height of the element being used to make a snapshot. I'm going to assume that this is due to our element…
icfantv
  • 4,523
  • 7
  • 36
  • 53
1
vote
1 answer

How can i write doc comments for test and make a report with typedoc?

I need to write doc comments for my test and then generate the documentation in a HTML file. I successfully generate the documentation with typedoc but only for my class and method and not for my test. My question is: how can I write doc comments…
1 2 3
99
100