Skip to content

Commit

Permalink
better logging in playwright ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tofsjonas committed Nov 18, 2024
1 parent 53b3ac9 commit 3dde357
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 269 deletions.
17 changes: 9 additions & 8 deletions tests/formats/bundled.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { test, createSortableTests } from '../sortable-test-base'

// Use override for the fixture
test.use({
formatName: 'bundled',
getUrl: async ({}, use) => {
await use((minified: boolean) => `/bundled.html${minified ? '?minified=true' : ''}`)
},
})
test.describe('bundled', () => {
test.use({
formatName: 'bundled',
getUrl: async ({}, use) => {
await use((minified: boolean) => `/bundled.html${minified ? '?minified=true' : ''}`)
},
})

createSortableTests()
createSortableTests()
})
17 changes: 9 additions & 8 deletions tests/formats/esm.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { test, createSortableTests } from '../sortable-test-base'

// Use override for the fixture
test.use({
formatName: 'esm',
getUrl: async ({}, use) => {
await use((minified: boolean) => `/esm.html${minified ? '?minified=true' : ''}`)
},
})
test.describe('esm', () => {
test.use({
formatName: 'esm',
getUrl: async ({}, use) => {
await use((minified: boolean) => `/esm.html${minified ? '?minified=true' : ''}`)
},
})

createSortableTests()
createSortableTests()
})
17 changes: 9 additions & 8 deletions tests/formats/standalone.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { test, createSortableTests } from '../sortable-test-base'

// Use override for the fixture
test.use({
formatName: 'standalone',
getUrl: async ({}, use) => {
await use((minified: boolean) => `/standalone.html${minified ? '?minified=true' : ''}`)
},
})
test.describe('standalone', () => {
test.use({
formatName: 'standalone',
getUrl: async ({}, use) => {
await use((minified: boolean) => `/standalone.html${minified ? '?minified=true' : ''}`)
},
})

createSortableTests()
createSortableTests()
})
Loading

0 comments on commit 3dde357

Please sign in to comment.