https://cypress.io logo
DataTable in the badeball/cypress-cucumber-preproc...
# i-need-help
a
Is DataTable or at least TableDefinition in the new @badeball/cypress-cucumber-preprocessor? It seems that are not recognized. Despite the fact that I do import {When, Then, DataTable } from "@badeball/cypress-cucumber-preprocessor"; and then into the code When(/^the table of the '(.+)' modal contains the following entries:$/, (dataTable: DataTable) => { dataTable.hashes().forEach((row) => { When Cypress run I always get: "dataTable.hashes is not a function"