Skip to content

Commit e37b479

Browse files
committed
Improve debug logging more
1 parent 0d4e072 commit e37b479

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/e2e-tests/magazine/collection.test.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,10 @@ test('E2E Magazine - Collection Pages', async t => {
394394
395395
All links found:
396396
`)
397-
console.log(allLinks.map(link => $(link).text()))
397+
console.log(allLinks.map(link => ({
398+
title: $(link).text(),
399+
href: $(link).attr('href')
400+
})))
398401
console.log(`
399402
400403
* * * *
@@ -571,7 +574,10 @@ test('E2E Magazine - Collection Pages', async t => {
571574
572575
All links found:
573576
`)
574-
console.log(allLinks.map(link => $(link).text()))
577+
console.log(allLinks.map(link => ({
578+
title: $(link).text(),
579+
href: $(link).attr('href')
580+
})))
575581
console.log(`
576582
577583
* * * *

0 commit comments

Comments
 (0)