Skip to content

Commit d224b80

Browse files
committed
add html reporter
1 parent d89dc67 commit d224b80

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/e2e/tests/smoke/browser/add-keys.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test
3131
await t.expect(notofication).contains('Key has been added', 'The notification');
3232
//check that new key is displayed in the list
3333
await browserPage.searchByKeyName(keyName);
34-
const isKeyIsDisplayedInTheList = await browserPage.isKeyIsDisplayedInTheList('Key has been added');
34+
const isKeyIsDisplayedInTheList = await browserPage.isKeyIsDisplayedInTheList(keyName);
3535
await t.expect(isKeyIsDisplayedInTheList).ok('The key is added');
3636
});
3737
test

tests/e2e/web.runner.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import testcafe from 'testcafe';
1313
.screenshots({
1414
path: 'report/screenshots/',
1515
takeOnFails: true,
16-
pathPattern: '${USERAGENT}/${DATE}_${TIME}/${FIXTURE}_${TEST_INDEX}.png',
16+
pathPattern: '${OS}_${BROWSER}/${DATE}_${TIME}/${FIXTURE}_${TEST_INDEX}.png',
1717
})
1818
.reporter([
1919
'spec',
@@ -24,6 +24,10 @@ import testcafe from 'testcafe';
2424
{
2525
name: 'json',
2626
output: './results/e2e.results.json'
27+
},
28+
{
29+
name: 'html',
30+
output: './report/report.html'
2731
}
2832
])
2933
.run({

0 commit comments

Comments
 (0)