Skip to content

Fix random CI failure in integration-tests\pluginApi.spec.ts #14274

@laurent22

Description

@laurent22

This random failure seems quite common:

  1) integration-tests\pluginApi.spec.ts:161:6 › pluginApi › should support hiding and showing panels 

    Error: expect(locator).toHaveText(expected) failed

    Locator:  locator('.rli-editor').locator('.cm-editor')
    Expected: "visible"
    Received: ""
    Timeout:  5000ms

    Call log:
      - Expect "toHaveText" with timeout 5000ms
      - waiting for locator('.rli-editor').locator('.cm-editor')
        8 × locator resolved to <div class="cm-editor ͼ1 ͼ2 ͼ4 ͼ2h ͼ2d ͼ2e ͼt ͼ2f ͼ2g CodeMirror  ">…</div>
          - unexpected value ""


      168 | 		const noteEditor = mainScreen.noteEditor;
      169 | 		await mainScreen.goToAnything.runCommand(app, 'testShowPanel');
    > 170 | 		await expect(noteEditor.codeMirrorEditor).toHaveText('visible');
          | 		                                          ^
      171 |
      172 | 		// Panel should be visible
      173 | 		await expect(panelLocator).toBeVisible();
        at D:\a\joplin\joplin\packages\app-desktop\integration-tests\pluginApi.spec.ts:170:45

    attachment #1: log.txt (text/plain) ────────────────────────────────────────────────────────────
    2026-02-04 18:55:42: Performance: main: Start at 1.28s
    2026-02-04 18:55:42: Performance: app/start: Start at 1.3s
    2026-02-04 18:55:42: Performance: BaseApplication/start: Start at 1.3s
    2026-02-04 18:55:42: App: Profile directory: D:/a/joplin/joplin/packages/app-desktop/integration-tests/test-profile...
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: test-results\pluginApi-pluginApi-should-support-hiding-and-showing-panels\error-context.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt's a bugciRelated to Joplin's automated update/build (continuous integration)highHigh priority issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions