0

So I'm trying to use Axios to fetch some data before the test begins.

the test step is defined as follows

const axios = require('axios');

step("GET google", async function() {
    await axios.get("https://www.google.com/")
});

And I have a test spec that looks like this

# Getting Started with Gauge
## GET google
* GET google

This is on a fresh Taiko/Gauge project. When running gauge runs specs I get the following error

Installing required plugins.
# Getting Started with Gauge
  ## GET google  F
        Failed Step: GET google
        Specification: specs\test.spec:6
        Error Message: AxiosError: Request failed with status code 400
        Stacktrace:

And nothing else happens

  • 400 represents a bad request, please verify if the request you are making is correct – par Sep 13 '22 at 11:11

0 Answers0