vendredi 4 septembre 2020

Error 'Cannot read property 'data' of undefined'

Steps to reproduce the bug :

1.I am running the automation tests with the command :

testcafe chrome e2e-tests/fixtures/articles-table.ts

2.As soon as I am logged in the application , an error is shown ,which says "Cannot read property 'data' of undefined "

enter image description here

3.I checked in the console the request: bad request 400 - Uncaught (in promise) TypeError

4.Four requests to the back end are failing ,giving the response:

Status Code: 400 Bad Request

enter image description here

5.The test I am actually trying to run is:

test.only("Articles table access", async t => { await t.click(homePageView.productMenu)

await t.expect((articlesPageView.articleTable).exists).ok();

});

Environment details:

testcafe 1.9.2 version:

node.js version:

command-line arguments: testcafe chrome e2e-tests/fixtures/articles-table.ts

browser name and version: Chrome Version 85.0.4183.83 (Official Build) (64-bit)

platform and version:Windows 10

Aucun commentaire:

Enregistrer un commentaire