Код: Выделить всё
test('should amount field and name field reset after submit', async ()=>{
const amountInput = await Selector('.amount');
await t.typeText(input, 10);
const nameInput = await Selector('.name');
await t.typeText(input, "test");
await t.click(Selector('button'));
await t.click(Selector('transfer'));
after calling api...
showing error modal
})
Подробнее здесь: https://stackoverflow.com/questions/793 ... in-testcaf
Мобильная версия