I try to write tests with TestCafe. I can't authenticate with valid credentials. I don't why? The UI gives the invalid credentials on forms. I can login with these credentials but in real page.
tests.js
import { Selector } from 'testcafe';
fixture `Getting Started`
.page `http://my_website/user/login`;
test('My first test', async t => {
await t
.typeText('[data-test=SignIn_email] input[type=email]', 'account@adphorus.com')
.typeText('[data-test=SignIn_password] input[type=password]', 'accountpassword')
.click('[data-test=login_loginButton]');
});
Aucun commentaire:
Enregistrer un commentaire