Skip to content

Commit a8dc2cf

Browse files
committed
Add logging
1 parent 5a449d8 commit a8dc2cf

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

.github/workflows/windows-electron.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ jobs:
3030
- name: Build and test Electron on Windows
3131
run: pnpm test:e2e:ci:win
3232
working-directory: products/jbrowse-desktop
33+
env:
34+
NO_MINIMIZE: true

products/jbrowse-desktop/test/e2e.ts

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,10 @@ async function testAddGff3TrackAndSearch(driver: WebDriver): Promise<void> {
743743
console.log(' DEBUG: Pausing to observe track list...')
744744
await delay(5000)
745745

746+
// Flush browser logs to see any track loading errors
747+
console.log(' DEBUG: Browser logs after track add:')
748+
await flushBrowserLogs(driver)
749+
746750
// Now search for EDEN.1 in the refname autocomplete
747751
console.log(' DEBUG: Looking for location search input...')
748752
const searchInput = await driver.wait(
@@ -756,6 +760,10 @@ async function testAddGff3TrackAndSearch(driver: WebDriver): Promise<void> {
756760
console.log(' DEBUG: Waiting for autocomplete suggestions...')
757761
await delay(3000) // Wait for autocomplete suggestions
758762

763+
// Flush browser logs to see any errors from the app
764+
console.log(' DEBUG: Browser logs before EDEN.1 search:')
765+
await flushBrowserLogs(driver)
766+
759767
// Look for EDEN.1 in the autocomplete dropdown and click it
760768
console.log(' DEBUG: Looking for EDEN.1 in autocomplete suggestions...')
761769
const edenOption = await driver.wait(
@@ -1146,39 +1154,15 @@ async function main(): Promise<void> {
11461154

11471155
console.log('\nRunning tests...\n')
11481156

1149-
console.log('Start Screen:')
1150-
await runTest('should display application title', testStartScreen, driver)
1151-
await runTest(
1152-
'should show start screen elements',
1153-
testStartScreenElements,
1154-
driver,
1155-
)
1156-
1157-
console.log('\nOpen Genome from Available Genomes:')
1158-
await runTest('should open hg19 genome', testOpenHg19Genome, driver)
1159-
1160-
console.log('\nOpen Genome with Local Files:')
1157+
// Temporarily focusing on volvox tests only for Windows CI debugging
1158+
console.log('Open Genome with Local Files:')
11611159
await runTest('should open volvox genome', testOpenVolvoxGenome, driver)
11621160
await runTest(
11631161
'should add GFF3 track and search for EDEN.1',
11641162
testAddGff3TrackAndSearch,
11651163
driver,
11661164
)
11671165

1168-
console.log('\nTrack Operations:')
1169-
await runTest('should show File menu', testFileMenu, driver)
1170-
await runTest('should open Help > About dialog', testHelpAbout, driver)
1171-
await runTest('should zoom in and out', testZoom, driver)
1172-
await runTest('should search for location', testLocationSearch, driver)
1173-
1174-
console.log('\nWorkspaces:')
1175-
await runTest(
1176-
'should move view to new tab with multiple views',
1177-
testWorkspaceMoveToTabWithMultipleViews,
1178-
driver,
1179-
)
1180-
await runTest('should copy view', testWorkspaceCopyView, driver)
1181-
11821166
// Summary
11831167
const passed = results.filter(r => r.passed).length
11841168
const failed = results.filter(r => !r.passed).length

0 commit comments

Comments
 (0)