Questions tagged [e2e-testing]

The evaluation of an application's performance, from its initiation to conclusion, is conducted through end-to-end testing. This approach is employed to ascertain if the application functions as intended and to pinpoint any interdependencies among different system components and systems in terms of transmitting accurate information.

Protractor: Navigating two drop down menus simultaneously on a webpage, able to choose option from only one dropdown menu at a time

Currently, I am using Protractor to execute an automated script. On one of the pages, there are two drop down menus positioned above and below each other. The interesting thing is that both drop down menus appear to be identical except for their different ...

Tips for closing file upload dialog after clicking the upload button using Protractor

Trying to figure out how to upload an image file in protractor without having to click on the upload button. Whenever I try to locate the element "input[type = "file"]", it only appears after clicking on the upload button. After clicking the upload button ...

Problem with updating Cypress e2e tests following recent package upgrades

My current project involved updating all the packages to their latest versions. Prior to the update, all end-to-end tests were functioning correctly without any issues. After completing the update, the product itself compiles and runs as expected without ...

Generate sample data within a fixture

Currently, I am in the process of working on a project that involves creating users and conducting tests on those users. To generate user data such as first name and last name, I am utilizing the faker tool. My goal is to create a user with these generated ...

Simulating server-side interactions in Node.js with TestCafe

I am currently working on a project where I need to figure out how to mock server-side requests. While I have successfully managed to mock client-side requests using request hooks, I am facing challenges when it comes to intercepting server-side requests ...

Click on a specific image in a table using Cypress with a specific source URL

I need help with a query for Cypress regarding a table of items, each item having active (blue) and not active (black) images. How can I set up this query? Below is an image of the table list: https://i.stack.imgur.com/74qzb.png And here is the HTML code ...

I'm having trouble installing puppeteer

I tried running the command npm i --save-dev puppeteer to set up puppeteer for e2e testing. Unfortunately, an error occurred during installation: C:\Users\Mora\Desktop\JS\Testing>npm i --save-dev puppeteer > <a href="/cd ...

Unable to find the specified element within Gmail

Recently, I've been working on a project with Nightwatch.js where it checks the dev environment and sends a test email to a Gmail account. Following that, it logs into Gmail, locates and clicks on the correct email. My main challenge now is trying to extr ...

Inline styling for a Cypress test on an Angular component within an SVG markup

Testing out this SVG for a specific purpose, without needing to explain why. Running some tests on it! <svg class="custom-background" width="1864" height="441" style="background: linear-gradient(to right, rgb(255, 255, ...

Utilizing data attributes in E2E testing for optimal results

We have decided to transition from using tag and classname selectors to data attributes in Cypress for our E2E testing. This change is intended to make the selectors more robust and less prone to breaking. Specifically, Cypress recommends using data-cy, d ...

Using Protractor to Verify Text Inside an Element

Is there a way to verify if a button contains text without specifying the actual text? I want to ensure that the button has text but not necessarily check for specific content as it may vary on different pages. Ideally, I'm looking for a dynamic solution t ...

I'm encountering an error in TestCafe that says "TypeError: Cannot read properties of undefined (reading 'match')". Which specific segment of my code is causing this issue?

retrieveUrlFromEmailData(emailData:any){ const emailContent = emailData.email_text; const urlPattern = /(https?:\/\/[^\n]*)/; const foundUrl = emailContent.match(urlPattern)[0]; return foundUrl } ...

Is there a surefire method to ensure that ChromeDriver in Protractor consistently uses the stable version?

Every time Chrome releases an update, I encounter a recurring issue. Allow me to paint the picture: All browsers are at version 83 of Chrome Chrome announces that version 84 is on its way, but it has not been released yet. A new ChromeDriver 84 is rolled ...

Issue with Protractor locating element even though everything appears to be in order

I'm having trouble locating this element with Protractor. It's really frustrating me. I double-checked in the dev console and the element definitely exists. Any suggestions on why it's not being found? <download path="api/backup_jobs/errors.csv" ...

Exploring the world of end-to-end testing for playwright. How to handle oauth2 and email-passwordless authentication in your testing

As I delve into e2e testing with Playwright, I've encountered a challenge. The application I need to test can only be accessed through Github OAuth or email authentication links, managed by next-auth in a NextJS project. I'm unsure how to approa ...

A guide on capturing the text content of the error message from the <mat-error> element with Protractor

I have encountered an element that is giving me trouble in retrieving the error message text into a variable. <mat-error _ngcontent-c16="" class="mat-error ng-star-inserted" id="error-email-required" role="alert" ...

How can Protractor be used to test content before Angular is fully loaded?

In my opinion, it's crucial to notify users when an Angular-based application is loading. For instance, in the case of Angular 2, you could use something like <view>Loading...</view>. I'm confident that there must be a similar method for Angula ...

Struggle with comparing strings in different cases

When utilizing the "WithText" function within a Testcafe script, it appears to be case-sensitive. How can I modify it to be case-insensitive? For example, allowing both "Myname" and "myname" for a user input. It's problematic when a script fails due to t ...

Utilizing styled-components or personalized components alongside cypress

Cypress selector made simple: just use cy.get('.myComp') and it will select <input className="myComp" />. But when it comes to styled-components... Perhaps we have to resort to using custom attributes like cy-data or cy-testid. Sadly, it seems there ...

Experiencing an issue in Test Cafe when attempting to click on an invisible link using the Client Function

I need to find a way to click on an invisible button in HTML. I attempted to use ClientFunction, however I encountered an error related to the element. import { Selector,ClientFunction } from 'testcafe'; fixture('Clicking Invisible link&apo ...

Optimizing Google e2e testing using Protractor

Improving login efficiency is necessary to enhance the speed of executing e2e tests. At present, after every test, the Chrome browser shuts down, requiring a new login session for each subsequent test. What changes can be made to address this issue? Any ...

What is the process for testing OTP login functionality using Cypress?

Is there a way to conduct end-to-end testing for OTP login? I have implemented OTP login functionality and now want to create a Cypress test that simulates a user entering the OTP received via email. How can I write a test for this when the OTP changes ev ...

Tips on waiting for an event to be processed during a Protractor end-to-end test

I have a straightforward AngularJs 1.4.8 Front-End: https://i.stack.imgur.com/2H3In.png After filling out the form and clicking the OK button, a new person is added to the table. The form resides in the addingPersonController, while the table is control ...

Encountering a network error while trying to sign into Google Cloud using Selenium automation

In my current project, I am utilizing Selenium and Selenium Wire. The task at hand involves creating flows to log into Google Cloud portals. The process involves entering my Google Cloud email, clicking on "continue" in the Google sign-in page, and then s ...

Tips for identifying changes in APIs during the simulation of end-to-end tests?

I am seeking to establish a strong e2e testing framework for our team's project, but I am struggling to find a straightforward solution to the following question: When all calls are mocked, how can we effectively detect if the actual model of the objects ...

What could be causing the sluggish performance of my protractor test cases?

I'm a beginner with Protractor. Utilizing Protractor and Jasmine for end-to-end automation testing on an Angular4 application. Noticed that when running a specific suite, it performs quickly. However, running all suites takes considerably longer to finis ...

Protractor fails to capture the presence of mat-dialog-container

My Protractor test for an Angular 5 application is functioning well, except when it has to handle a popup containing input fields. The HTML element representing the popup looks like this: <mat-dialog-container class="mat-dialog-container ng-tns-c26-5 n ...

Ways to determine if an expectation has not been met in Jasmine/Protractor

I am testing a page where server-side RSA keypair generation occurs after the page has completely loaded. This process takes between 5 to 20 seconds with my current setup, during which time the user must wait until the browser receives the keypair. Althou ...

Testing the attribute value of the React Material UI Drawer Component using Cypress

Looking at this MUI implementation inside my react component: <Box sx={{ display: 'flex' }}> <Drawer name="permDrawer" open={openSideDrawer} style={{ zIndex: -1000 }} variant="permane ...

How can I verify in protractor whether a table cell contains specific text?

Currently, I am debugging an end-to-end test using Selenium Webdriver Manager version 12.1.7 with Protractor 5.4.3. I am attempting to verify the presence of a table cell on my page that contains specific text. The code snippet I'm using is as follows ...

Is there a method to implement retries for inconsistent tests with jest-puppeteer?

Currently, I am struggling with an issue where there is no built-in method to retry flaky tests in Jest. My tech stack includes Jest + TypeScript + Puppeteer. Has anyone else encountered this problem or have any suggestions for possible solutions? I attem ...