Skip to main content

All Questions

Tagged with
54 votes
5 answers
22k views

Can protractor be made to run slowly?

Is there a way to run a Angular E2E test written using protractor slowly so that I can watch what is happening?
cortfr's user avatar
  • 1,125
32 votes
4 answers
25k views

Can I access parameters in my protractor configuration file?

I start my protractor tests by running the following: protractor protractor.conf.js --params.baseUrl=http://www.google.com --suite all I would like to run a 'before launch' function which is ...
Julio's user avatar
  • 879
75 votes
13 answers
91k views

How to test file inputs with Cypress?

How can I write an e2e test of flow that requires interaction with the file Input DOM element? If it's a text input I can interact with it (check value, set value) etc as its a DOM component. But If ...
sidoshi's user avatar
  • 2,140
21 votes
4 answers
21k views

How to simulate a drag and drop action in puppeteer?

I have React-DnD(Drag and drop) in my application. I'd like test it E2E. What I want to simulate is drag a particular element and drop to a particular place. How do I do this? What I have is: //...
Khushi's user avatar
  • 1,839
7 votes
2 answers
10k views

How to wait for an element to disappear in TestCafe?

When I need to wait for an element to become visible I can simple call the selector as a function like this: await element.with({ visibilityCheck: true })(); But how can I wait for an element to ...
Adam Genshaft's user avatar
4 votes
1 answer
527 views

In a browser extension document.location.href behaves differently when system is under test with Cypress

I have a javascript application and somewhere in the application I have to get the current address of the page by: const currentUrl = window.location.href; currentUrl should have some value like ...
Envil's user avatar
  • 2,717
4 votes
5 answers
7k views

Testcafe example to assert file download

I want to write a fixture to simulate the export file and make sure a file is downloaded from browser actions. any example? NA
GM.'s user avatar
  • 141
6 votes
2 answers
2k views

Testcafe - Test command line argument outside test case

As I'm getting familiar with Testcafe, I'm trying to use a command line argument to give the user more information on how to run tests. For that reason, I'm using the minimist package. However, I ...
user avatar
4 votes
2 answers
5k views

Cypress adding token to all requests headers

I'm testing a website that returns token in body from login request. Then all the requests made after we logged in use this token value in header. I made a custom cypress command that logs in by ...
Yaroslav Fomin's user avatar
1 vote
5 answers
13k views

Adding basic auth to all requests in Cypress

I'm a Cypress newbie and need to add basic auth to all cy.visit() calls. The auth credentials are dependent on the deployment (i.e. they are specific to the 'baseUrl' which we set in the environment ...
Patrick Clancey's user avatar
1 vote
1 answer
931 views

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 ...
TS0306's user avatar
  • 177
27 votes
2 answers
49k views

Cypress: type tab key

I want to test that my forms are accessible and that I can tab between my input elements. I found this github issue asking for the feature here: https://github.com/cypress-io/cypress/issues/299 ...
kuceb's user avatar
  • 17.6k
8 votes
1 answer
3k views

How to get the json response of a RequestLogger

RequestLogger A have this test outside the main test controller, using page model and this recipe. /** Used to get the periodic analytic id. Whenever we are viewing an asset, the server must ...
Aris Gatoudis's user avatar
7 votes
1 answer
6k views

Cypress 7.0+ / Override responses in intercept

I hope you're doing well. I'm currently working on the upgrade of cypress to 7.0. (v7.4.0 more exactly) I have an issue with the overriding of intercept calls. It seems that Cypress team worked on the ...
Fujo DJ's user avatar
  • 73
6 votes
2 answers
20k views

Cypress - log response data from an request after a click()

Although I know this may not be considered as a best practice, but what I want to achieve is to silently delete a record from a database after the same was created throughout UI. In htat way I want to ...
Alen's user avatar
  • 65

15 30 50 per page