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
12
votes
3 answers

Protractor: Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined

I am trying to write some end to end tests and waned to use async and await. configuration file exports.config = { framework: 'jasmine', seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['spec.js'], SELENIUM_PROMISE_MANAGER:…
Thunfische
  • 1,107
  • 2
  • 15
  • 35
12
votes
2 answers

How to check if element is never visible in Cypress e2e testing?

Is there any way to assert that an element is never visible at any point when routing within Cypress? I have a server-rendered web app that is sometimes showing a "loading" state when it shouldn't. So when I navigate between pages, a "loading"…
greatbearshark
  • 165
  • 1
  • 2
  • 8
12
votes
2 answers

How to pass userDataDir profile folder to Puppeteer

I want to pass a custom profile to Puppeteer. To start I've tried to pass my real Google Chrome profile: const browser = await puppeteer.launch({ userDataDir: '/Users/[USERNAME]/Library/Application Support/Google/Chrome/Default', headless:…
12
votes
3 answers

"unable to connect to renderer" : Unable to resize or maximize the browser window using protractor with chrome beta

I am using Protractor and jasmine. I have Identified that chrome driver version: 2.32.498550 (latest) is not compatible with the chrome beta (Version 62.0.3202.18 (Official Build)). It breaks when the statements…
11
votes
5 answers

Is there a way to iterate over a
  • list in Playwright and click over each element?
  • I'm trying to iterate over a list of dynamic elements with Playwright, I've tried a couple of things already, but none have been working: await this.page.locator('li').click(); const elements = await this.page.locator('ul > li'); await…
    Gabriel Costa
    • 374
    • 1
    • 3
    • 16
    11
    votes
    6 answers

    How to set the browser's language in Cypress.io (electron/chrome)?

    My question is about configuring Cypress to launch a browser instance in a certain language. In order to: make assertions on localized (i18n) text labels? check i18n features (switching between languages) bypass issues of Continuous Integration…
    David Lacourt
    • 1,165
    • 1
    • 10
    • 14
    11
    votes
    1 answer

    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 detail page and I can continue with testing. The…
    Cornel Janssen
    • 681
    • 1
    • 11
    • 33
    11
    votes
    1 answer

    Handling Hover over menu's using Cypress

    I recently stumbled upon the e2e tool - Cypress.io. I'm currently doing a POC for the firm I work with for e2e testing of a react app. It has a hover over menu like most of the web apps have now. An example : URL : Fmovies I was trying to click a…
    demouser123
    • 4,108
    • 9
    • 50
    • 82
    11
    votes
    1 answer

    In which ways is TestCafe better than Selenium?

    What problems does TestCafe overcome that justify its adoption over Selenium? Is it worth to port over older test suits to TestCafe?
    10
    votes
    2 answers

    Playwright e2e testing. What to do with oauth2 or email-passwordless authentication

    I am starting to do e2e tests with playwright. Most of the application requires to be authenticated. Automating this with a username/password mechanism is quite easy. The problem is that the app I want to test has only two authentication mechanisms:…
    10
    votes
    1 answer

    What's the difference between a UI test and an E2E Test? And What's the benefits of each?

    Our team is considering starting testing based on user scenarios. So, we are picking a E2E framework. Searching for UI test lead to the following: So, I found this this It says UI testing: user interface testing. In other words, you have to make…
    c-an
    • 3,543
    • 5
    • 35
    • 82
    10
    votes
    2 answers

    Cypress to test Radio Button Value

    I am writing a cypress test for radio to check whether it is private or public. HTML Section
    `
    Rahul Thawal
    • 241
    • 1
    • 3
    • 13
    10
    votes
    3 answers

    Angular migration (from 4 to 6) e2e --proxy-config not working

    I've been currently migrating my app from 4 to 6 and I can not executing my proxy script for my e2e tests. The script listing looks as follows: "scripts": { "ng": "ng", "start": "ng serve", "start:tst1": "ng serve --proxy-config…
    MarcoLe
    • 2,309
    • 6
    • 36
    • 74
    10
    votes
    1 answer

    Waiting for Ionic Loading dialogs with Protractor

    There are similar questions (linked below) but none solves this problem. I'm writing Protractor tests for an Ionic Project. I need to execute tests at times when an Ionic Loading dialog appears and disappears. I've created a repo with the bare bones…
    10
    votes
    5 answers

    A Jasmine spec timed out. Resetting the WebDriver Control Flow - when redirect to new page

    I'm beginner in the e2e testing and have a problem. When I do login - I make redirect from login.php to index.php page. But my test is fails with following errors: ..A Jasmine spec timed out. Resetting the WebDriver Control Flow. F Failures: 1)…
    Gleb
    • 1,312
    • 3
    • 18
    • 36