All Questions
20
questions
0
votes
0
answers
14
views
Fix NighwatchJS Angular output wrapping incorrectly
I've installed Angular with ng new with all defaults, and then used ng e2e to scaffold NightwatchJS with all defaults. The tests run just fine now, but the output is unreadable on my Windows shells ...
0
votes
1
answer
171
views
How can I read the tag value inside svg tag in testcafe
There are multiple child elements present in the svg tag and I want to read the value of those tags, How can I do that?
I have tried following thigs
Tried to read the value using the child function
...
0
votes
1
answer
437
views
How can I click on first button with data-cy equal to other buttons?
I'm new to test e2e and I'm trying to click on a specific button, I gave it a data-cy that automatically is been attributed to other buttons created dynamically.
How can I click on first button? The ...
2
votes
3
answers
784
views
Check if URL contains this OR this in Cypress
In Cypress 10, how can I check that a URL contains something, or something, or something? I know how to check a URL for one thing:
cy.url().should('contains', '/inventory.html');
But how do I modify ...
0
votes
1
answer
945
views
Cypress testing drag with mouse events not working
Following the documentation https://docs.cypress.io/api/commands/trigger#Mouse-Events I am trying to test the behavior of my app, where I draw a square by right clicking and dragging the mouse. In my ...
0
votes
1
answer
60
views
Cypress represent the OR in a loop
I am trying to test the input values of a table, but I cannot represent the OR, nor can I skip a cell of a table.
the table is cycled, it has all positive values, except in a cell where in automatic ...
1
vote
3
answers
1k
views
Cypress angular test style inline on a svg
I have to test this svg, now don't ask me why, I need it and I'm doing some tests!
<svg class="custom-background" width="1864" height="441" style="background: ...
0
votes
1
answer
597
views
Angular E2E Testing Script Timeout
I'm new to Angular
I created a project with it which is working fine so far. But now I want to add some testing to it.
Unfortunately I'm not able to make it work.
So my app is a basic todo app.
In the ...
0
votes
0
answers
200
views
TestCafe not rendering elements with Angular asyncPipe
Using TestCafe directives using the Angular asyncPipe are not rendered or clickable in the browser for testing:
Example Element -
<a mat-tab-link
*ngIf="capabilitiesFacade....
0
votes
1
answer
161
views
Angular tests fails with ng e2e but pass with protractor conf.js
while working on test automation for angular apps, i faced a problem that whenever I try to run the test suit with angular command ng e2e all the tests fail. The same tests get passed with protractor ...
1
vote
1
answer
1k
views
Disable page reloads in test-cafe framework using single page apps
I have a problem in test-cafe with angular, for each test case the browser reloads which takes much time,
I want to disable the page reload for each test, anyone has any idea?, if this solution not ...
2
votes
2
answers
750
views
How to wait until angular execute in TestCafe?
I want to wait for angular go to a stable state after some action in the app.
I found that angular has
window.getAllAngularTestabilities() and isStable function()
I tied to use it using TestCafe ...
0
votes
1
answer
122
views
How to E2E test data within third party package with Protractor - Angular
I am wondering if it is possible to add a unique identifier to a 3rd party package at the root html element level. For example, I am using the package myDatePicker via NPM.
I can add an ID tag to ...
0
votes
0
answers
388
views
Modify global Window Variable in Angular 6 Tests
I'm trying to test an end-to-end process in an Angular 6 app using e2e and protractor. I have a service that injects some javaScript into the page, so my tests verify that the script has been ...
1
vote
1
answer
1k
views
How to catch the <mat-error> error message text content using Protractor
I'm dealing with below element and having trouble with getting the error message text in to a variable.
<mat-error _ngcontent-c16="" class="mat-error ng-star-inserted" id="...