All Questions
Tagged with testing e2e-testing
1,055
questions
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 ...
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?
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 ...
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
...
22
votes
2
answers
5k
views
Handling third-party API requests in End-to-End testing
I want to test my Rest API with end-to-end tests. As I understand, the difference between integration tests is that we don't do in-memory system configuration, but use real test DB and network ...
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:
//...
16
votes
2
answers
24k
views
Catch URL after click with Cypress (window.location changes)
I would like to know how to capture and read the URL after a click event on an <a> link.
On the onClick event our javascript does some string manipulation of the actual href of the clicked link ...
14
votes
2
answers
8k
views
Nest.js Testing Error: Using the "extends Logger" instruction is not allowed in Nest v8. Please, use "extends ConsoleLogger" instead
Here's the problem I have:
I am using my custom Logger in Nest.js:
export class ReportLogger extends ConsoleLogger {
verbose(message: string) {
console.log('【Verbose】Reporting', message);
...
13
votes
3
answers
18k
views
Nightwatch testing: Set browser to fixed size
Is there any way to ensure that the browser does not change from the initial window size. There are several things that are clicked during testing that are causing the window to maximize but i would ...
13
votes
2
answers
11k
views
How can I check an element for multiple CSS classes in Cypress?
How to check if an element has multiple classes?
Couldn't find anything on the official docs, only:
cy.get('form').find('input').should('have.class', 'disabled')
or
expect($el).to.have.class('foo')...
13
votes
2
answers
11k
views
Write current URL to console in TestCafe
I have a variable "currentPage" which I want to set to the current URL on the running page.
But to see that the URL is correct I want to print it to the console. What ever I try I keep getting "not ...
11
votes
1
answer
11k
views
TestCafe - Wait for page load after click on link
I'm using testcafe for e2e testing my current e-commerce project. On the product listing page, I use a Selector to select a product tile and perform a click. After this, the page loads the product ...
9
votes
1
answer
9k
views
How to expect url is redirect in TestCafe?
I want to detect URL is redirected to the login page when clicking something that needs to log in first.
Is there any way to achieve that?
8
votes
3
answers
8k
views
Testcafe command not found when installed through "npm install"
When I installed testcafe with command sudo npm install -g testcafe I was able to use the command "testcafe" in the terminal, running tests like testcafe browser test, but now I formatted my OS and ...
8
votes
3
answers
6k
views
How to configure middleware in e2e test in nestjs
In real app, we write:
export class AppModule implements NestModule {
constructor() {}
configure(consumer: MiddlewareConsumer) {
consumer.apply(JwtExtractionMiddleware).forRoutes({
...