Questions tagged [chai]

Chai is an assertion library that can be used with any Javascript testing framework.

Filter by
Sorted by
Tagged with
1
vote
2answers
47 views

Passing the UI data from one test to another

I work with Playwright, Mocha and Chai. In the application that I am currently testing I need to automate the following scenario. When a user logs into the application a dashboard with assigned list ...
0
votes
2answers
34 views

Playwright: Using ReqExp inside of the URL while trying to check PUT request via page.waitForResponse()

Currently in one of my test I am trying to check PUT request status. In one of the user scenarios when a user clicks Confirm button a PUT request is sent and if all good status code 200 is present in ...
1
vote
1answer
62 views

Playwright: Working with Bootstrap modal dialogs/popups

So I have been facing some issue with some of my tests which require a user to Confirm or Cancel a Bootstrap modal dialogs/popups windows. It seems that each time when I try to interact with a Confirm ...
1
vote
2answers
174 views

Playwright: Creating and interacting with a list of elements on the page

This might be a simple question, however I would like to know if there is a simple way of declaring a list of elements which later on you will be working on for example looping through it and looking ...
1
vote
1answer
173 views

Playwright: Printing Console Logs each time when one of the test fails

I am working with Playwright, Mocha and Chai for my automation project and I was wondering if there is a way for capturing all console logs that appear during a failed automation test execution. ...
-1
votes
1answer
50 views

What are some simple eslint defaults that can help improve app code and test code quality?

I use mocha/chai and my .eslint file is in YAML. What eslint settings could I apply to most projects, i.e. use as a template ?
0
votes
1answer
148 views

How to generate Excel test report from Appium with mocha chai?

I would like to generate a simple test report in Excel. My automation is using Appium with chai mocha, and successfully reports the results of my 2 test cases to the command line. How can I send ...
3
votes
2answers
804 views

Should I use Jasmine/FrisbyJS or Mocha/Chai for testing of live API with Angular?

What I'm looking for in an answer Concrete relevant(newer?) examples of why one choice is better than the other OR, a concrete suggestion of why using a different language is the better choice over ...
2
votes
2answers
70 views

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

I am using Mocha and Chai.js to test a function which executes git pull in a Terminal and I want to assert that it results in Already up-to-date. How can I accomplish this? What is the best approach ...