Hello
I write testcase like this.
test('test', async t => {
// log in procedure.
// test1
await t
.expect(Selector('h1').innerText).eql('title1');
// test2
await t
.expect(Selector('h2').innerText).eql('title2');
});
but it is It is recognized one test.
I want to split test1 test2.
TestCafe has test title method?
but if I split like this, it runs log in procedure. it is very annoying.
test('test1', async t => {
// log in procedure.
// test1
await t
.expect(Selector('h1').innerText).eql('title1');
});
test('test2', async t => {
// log in procedure.
// test2
await t
.expect(Selector('h2').innerText).eql('title2');
});
could you tell me how to split test?