Skip to main content
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(); ...
Vishal Aggarwal's user avatar
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 ...
Michael Durrant's user avatar
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)....
Cherree's user avatar
  • 1,189
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('...
Dmytro Lukashenko's user avatar
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 ...
Lee Jensen's user avatar
  • 2,240
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 ...
Vishal Aggarwal's user avatar
2 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/...
Automation_Padawan's user avatar
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, ...
PDHide's user avatar
  • 11.1k
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 ...
pavelsaman's user avatar
  • 4,548
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'...
pavelsaman's user avatar
  • 4,548
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 ...
João Farias's user avatar
  • 10.9k
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.
vbrin27's user avatar
  • 153
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 ...
Boji's user avatar
  • 26
1 vote

Using Chai, how can I assert the result of "git pull"

Try to capture the output from cmd.run(git pull');, e.g. out = cmd.run('git pull'); then assert out.match('Already up-to-date.') I don't know the exact syntax so adjust as needed.
Michael Durrant's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible