Questions tagged [end-to-end]

Is a technique used to test whether the flow of an application right from start to finish is behaving as expected. For anything relating to applying a test, protocol, or other desired action to a set of servers from front-end to back-end.

While testing all of the individual components and connections in large system can help to give confidence in a system overall, ensuring that the expectations of system work together as a continuous entity will provide the greatest confidence in its viability.

Many other concepts also apply on an end-to-end level, such as ensuring that data is encrypted from the moment a user submits it until it reaches a database or other back-end or other similar considerations. Particularly as a multi-tiered infrastructure increases in complexity, so to does the burden of ensuring that the expectations of the system hold true across the various components of the system.

659 questions
20
votes
1 answer

Getting currently selected text

I'm try to get the currently selected text in an input using window.getSelection() but I'm always getting an empty string: expect(browser.executeScript("return window.getSelection().toString();")).toEqual("test"); Results into: Expected '' to equal…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
19
votes
3 answers

Verify Element Is Within Viewport With Cypress

Cypress's visible matcher treats an element as visible based on a variety of factors, however it doesn't take the viewport into account, so an element that is scrolled off-screen is still treated as visible. I need to test that a link to an on-page…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
19
votes
1 answer

Should I use browser or ptor = protractor.getInstance()?

I watched this video (https://www.youtube.com/watch?v=idb6hOxlyb8) which was uploaded Aug 2013. It claims that we should use ptor.get(url) rather than browser().navigateTo(url) in future. But when I look at docs on the protractor home page (on…
Tim Hong
  • 2,734
  • 20
  • 23
18
votes
5 answers

integrate puppeteer in gitlab with gitlab-ci.yml

Im currently working on e2e test in Chrome Puppeteer. I am at the stage where it would be ideal to integrate my tests in the development process. What I want to accomplish is the following: my tests run automated before every deploy to production.…
17
votes
2 answers

How to select an element in protractor having multiple classes?

I have a div like this:
When I am trying to get the element in Protractor by…
Jyotirmoy Pan
  • 837
  • 2
  • 10
  • 28
17
votes
3 answers

Testing a confirm dialog with Protractor

This seems to be a pretty simple question, but I really can't find an answer online and I was not able to find an answer myself. I'm using AngularJS for my application and at some point, I have a native JavaScript confirmation box/dialog which asks…
redwulf
  • 1,317
  • 3
  • 13
  • 35
16
votes
2 answers

Non-angular page opened after a click

I'm trying to implement the following test scenario: perform a click on a logo on the page assert there is a new browser window opened (tab in Chrome) and check the current URL The problem is that the page opened in a new browser window is a…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
15
votes
4 answers

Cypress - Timed out retrying after 4000ms: Expected to find element - only in Jenkins

I have a grouping of Cypress tests that are failing, only in my Jenkins environment. An entire describe block is failing to find an element. Every test in the block starts with the same commands: describe("This section of tests", () => { …
Seth Lutske
  • 9,154
  • 5
  • 29
  • 78
15
votes
2 answers

expect() with no actual expectations

The Problem: Recently, while reviewing our existing test codebase, I've noticed a dangerous kind of typo/mistake when expect() was used without the "matching" part: expect(page.filters.fromDateLabel.getText(), "After"); I'm pretty sure toEqual()…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
15
votes
5 answers

mouseover element not working using protractor

I have a directive that produces the following html structure:
Mike Rifgin
  • 10,409
  • 21
  • 75
  • 111
15
votes
2 answers

How do I set up remote browsers in Karma?

I'm having trouble wrapping my head around Karma. I'd like to: Set up multiple hosts on my network, running Linux, Mac and Windows Preferably also run on Android and iPhone Have these be available for running end-to-end tests through Karma Have…
14
votes
2 answers

Disable web security in Cypress just for one test

After reading the Cypress documentation on web security and when to disable it, I've decided I indeed need to do it. Is there a way to disable this just for one particular test/test suite? I'm using version 3.4.1 and this config is being set in…
DurkoMatko
  • 5,238
  • 4
  • 26
  • 35
14
votes
4 answers

Get all element attributes using protractor

According to the documentation, to get a single attribute by name you can use .getAttribute() on a WebElement: var myElement = element(by.id('myId')); expect(myElement.getAttribute('myAttr')).toEqual('myValue'); But how can I get all of the…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
13
votes
3 answers

Ignore SSL errors with playwright code generation

I am using the jest-playwright library (https://github.com/playwright-community/jest-playwright) to perform end-to-end testing. In the jest.config.js file you can set an option to ignore SSL errors: contextOptions: { ignoreHTTPSErrors:…
kingkoen
  • 131
  • 1
  • 1
  • 3
13
votes
2 answers

Using Tensorflow's Connectionist Temporal Classification (CTC) implementation

I'm trying to use the Tensorflow's CTC implementation under contrib package (tf.contrib.ctc.ctc_loss) without success. First of all, anyone know where can I read a good step-by-step tutorial? Tensorflow's documentation is very poor on this…
1
2
3
43 44