Skip to content
Snippets Groups Projects
Select Git revision
  • 9b07d0ca2cd36b4cceecbe968b90fa5adcb4ca4e
  • main default
  • 35-cgu
  • 34-peertube-support
  • 27-add-autoplay-to-iframe
  • 33-bug-on-youtube-embed-urls
  • RC-Rekall-v1.1-fix_lpo
  • tuleap-140-go-back-to-my-capsules-page-when-i-m-on-capsule-preview-page
  • RC-Rekall-v1.2-fix10
  • RC-Rekall-v1.2-fix9
  • RC-Rekall-v1.2-fix8
  • RC-Rekall-v1.2-fix7
  • RC-Rekall-v1.2-fix6
  • RC-Rekall-v1.2-fix5
  • RC-Rekall-v1.2-fix4
  • RC-Rekall-v1.2-fix3
  • RC-Rekall-v1.2-fix2
  • RC-Rekall-v1.2-fix1
  • RC-Rekall-v1.1-fix-3
  • RC-Rekall-v1.1-fix-2
  • RC-Rekall-v1.1-fix-1
  • RC-Rekall-v1.1-delivered
  • preprod20220209-1535
23 results

Version20211230115034.php

Blame
  • companion_windows.test.js 1.58 KiB
    describe('Companion Windows', () => {
      beforeAll(async () => {
        await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/blank.html');
        await expect(page).toClick('#addBtn');
        await expect(page).toClick('.mirador-add-resource-button');
        await expect(page).toFill('#manifestURL', 'http://127.0.0.1:4488/__tests__/fixtures/version-2/001.json');
        await expect(page).toClick('#fetchBtn');
        await expect(page).toClick('[data-manifestid="http://127.0.0.1:4488/__tests__/fixtures/version-2/001.json"] button');
        await page.waitForTimeout(300);
        await expect(page).toMatchElement('.mirador-window');
      });
    
      it('allows the sidebar panel to be popped out into a companion window', async () => {
        await expect(page).toClick('button[aria-label="Toggle sidebar"]');
    
        await expect(page).toMatchElement('.mirador-companion-window-left.mirador-window-sidebar-info-panel');
        await expect(page).toMatchElement('button[aria-label="Information"][aria-selected="true"]');
    
        await expect(page).not.toMatchElement('.mirador-companion-window-right.mirador-window-sidebar-info-panel');
    
        await expect(page).toClick('button[aria-label="Open in separate panel"]');
    
        await expect(page).toMatchElement('.mirador-companion-window-right.mirador-window-sidebar-info-panel');
    
        await expect(page).toClick('button[aria-label="Close panel"]');
    
        // TODO: Write something like the assertion below that verifies the sidebar is no longer visible
        // await expect(page).not.toMatchElement(
        //   '.mirador-companion-window-right .mirador-window-sidebar-info-panel',
        // );
      });
    });