Category "testing"

BDD Cucumber test management tool

Is there an open source tool available to control the running of BDD cucumber tests? We are developing BDD cucumber tests and would like the option to control

Chai should be bignumber equal doesn't work

I am requireing chai like this const BigNumber = web3.BigNumber; require('chai').use(require('chai-bignumber')(BigNumber)).should(); and during test let balanc

Running a command cy.exec('npm run sfdx:latest-leads') will change the json file format

Current behavior I'm currently working on a project where I set up a command in my package.json. As soon as I run that command through a cypress file, it seems

Running a command cy.exec('npm run sfdx:latest-leads') will change the json file format

Current behavior I'm currently working on a project where I set up a command in my package.json. As soon as I run that command through a cypress file, it seems

How to send GraphQLrequest using Cypress

I wonder if there is a way to send GraphQL mutations using Cypress? There is cy.intercept() but this is more for waiting for responses.

Mocking Unirest with mockito

I am in my starting programming phase and I wanted to ask about mocking Objects with Mockito, more specifically is the Unirest response. Let's say I have a data

How to test _document in Next using Jest

I'm trying to achieve 100% coverage in a project and this is the only file I can't test because I haven't got any idea of how to do it. I don't even know where

Is it possible to mock a function imported from a package in golang?

I have the following method to test, which uses a function imported from a package. import x.y.z func abc() { ... v := z.SomeFunc() ... } Is it

How do I select the right elements with querySelectorAll as I do by using the Chrome developers console?

I'm currently using cypress to test salesforce, and I'm running into a certain circumstance where I don't know the Party record ID that will create it within th

How do I select the right elements with querySelectorAll as I do by using the Chrome developers console?

I'm currently using cypress to test salesforce, and I'm running into a certain circumstance where I don't know the Party record ID that will create it within th

Is there a way to set custom responses from an external server when a specific request receive?

I have a program that is only displaying bug behavior when a certain response is received from an external server. The only thing is, the external server is in

JavaScript test runner that supports native modules

Is there a JavaScript test runner that supports native modules?

Returning responses randomly from wiremock

I need to return a random response out of a predefined set each time the same wiremock endpoint is called. How can I do it?

What are assertions in JEST?

It's documentation says that while dealing with async code, expect.assertions(x) should be written. What exactly do assertions refer to? Is it a term of plain J

Why remove QA IDs from the code base in production

In a React application that we are developing we use QA IDs for Selenium tests. Is it bad practice to leave them in the code base in production (live)? If so,

How to create tests for kana (katakana/hiragana) using selenoid?

We want to write e2e tests for the Katakana method using Selenoid. But how we can realize it? There is should be exactly Latin input that converts into Katakana

how to view WTForms validation errors?

I am writing some basic tests and have a test failing. def test_new_user_registration(self): self.client.get('/user/register') form = RegistrationForm(

How to test testcase wise in cypress

Just like @Test (TestNG) in Selenium. Is there a way to test cases one by one and each test case not affecting the subsequent one in cypress?

Is there a way to assign a unique "ID Key" to each feature/scenario in Karate DSL

I would like to know if it is possible to assign "ID Keys" to each feature or scenarios in Karate DSL in order to keep all of them uniquelly referenced. When yo

How to reset Laravel AuthManager/guards in between API calls in tests?

I'm writing a Feature test for an API and I want to test custom auth logic. I know that when I call the login API endpoint, Laravel caches the fact that the use