7
votes
Accepted
Playwright: Printing Console Logs each time when one of the test fails
Browser console message/errors can be listened like below at runtime:
const playwright = require("playwright");
(async () => {
const browser = await playwright.chromium.launch();
...
3
votes
Accepted
Passing the UI data from one test to another
One test. Two setup steps.
What you have described is very common, particularly as test scenarios get more complex.
What you need is one test with setup that does the user logging in, the user ...
3
votes
Accepted
Playwright: Working with Bootstrap modal dialogs/popups
After long testing, debugging and with little bit of help I was able to find the solution. As a starter I used all possible Plawright debugger which you can find in here https://playwright.dev/docs/...
2
votes
Getting an error TypeError: describe is not a function
var Page = require ('../lib/home_page.js');
var webdriver = require('selenium-webdriver');
{ describe , before , after , it } require('selenium-webdriver/testing');
var page;
describe('...
2
votes
How to generate Excel test report from Appium with mocha chai?
By default, as per the Mocha documentation on reporters, there is no Excel reporter. There are some CLI reporters (Spec, Dot, etc) and there are HTML and JSON reporters.
A quick Google search shows ...
2
votes
Accepted
Playwright: Creating and interacting with a list of elements on the page
const myItemList = await this.page.$$('tr[class="ant-table-row-0"]');
const myGroupItems = await myItemList.$$('tr:has-text("My Group Value")');
$$ returns a list, not an object, ...
2
votes
Passing the UI data from one test to another
It's an single integration test.
First of all it has nothing to do with playwright, it's common
automation scenario which can occur while using any automation
library/frameworks. I have faced this ...
2
votes
Should I use Jasmine/FrisbyJS or Mocha/Chai for testing of live API with Angular?
1) If you're testing at the level of an http request your app's use of angular is almost certainly a non-factor. Angular would matter more were you testing at the browser level ("as a user" basically)....
1
vote
How to reset app between tests in WDIO?
Based on what code you've provided, I'd say how you're setting it up is incorrect.
it are used for the test itself, where you perform actions and make assertions. While you have actions, like click() ...
1
vote
Accepted
Playwright: Using ReqExp inside of the URL while trying to check PUT request via page.waitForResponse()
There are 2 mistakes as far as I can see:
1/ strictly comparing a string object with a different object (re) will always return false:
You need to use some method like RegExp.prototype.test(), for ...
1
vote
Cypress + mochawesome-report undefined in consol
I tried to pin down the source of "undefined" on both your example and my own tests.
After playing around with it for a while, "undefined" seems to be coming from Cypress, not Mocha reporter since I'...
1
vote
Best practice to TDD a unit of work in frontend JavaScript
Since you cannot leverage the testing tools of modern framework, such as React or Ember, I would suggest the following:
Focus on application level checks:
Using Selenium, most widespread. Example ...
1
vote
Accepted
How to know when "karma" test cases are run and reports are generated?
I have listened to the event "run_complete" and I have done my actions.
1
vote
Accepted
Should I use Jasmine/FrisbyJS or Mocha/Chai for testing of live API with Angular?
I'm relatively new to the MEAN stack, so I had to answer this question for myself in the last 1-2 months. I chose Jasmine/Frisby.
Here is why:
As you say, there are many tutorials and examples for ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
mocha × 17javascript × 10
chai × 9
automated-testing × 8
playwright × 5
appium × 3
selenium-webdriver × 2
integration-testing × 2
nodejs × 2
unit-tests × 1
mobile-automation × 1
uiautomation × 1
bdd × 1
angular × 1
tdd × 1
jasmine × 1
typescript × 1
webdriver.io × 1
front-end × 1