Skip to content
Snippets Groups Projects
Select Git revision
  • d241622b991cac8c071d47a50263f564e4402701
  • annotation-on-video default protected
  • demo_ci
  • 3-upstream-01022023
  • master
  • gh3538-captions
  • 16-adapt-for-images-annot
  • 15-api-for-annotations-on-video
  • 15-annotations-on-videos
  • video_for_annotations
  • wip-1-annotations-on-videos
  • 9-videoviewer-tests
  • 9_wip_videotests
  • 6-fix-tests-and-ci
  • _fix_ci
  • wip-webpack-from-git
16 results

add.test.js

Blame
  • add.test.js 818 B
    describe('add two plugins to <WorkspaceControlPanelButtons>', () => {
      beforeAll(async () => {
        await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/add.html');
        await expect(page).toMatchElement('.mirador-viewer');
        await page.waitForTimeout(1000);
      });
    
      it('all add plugins will be added to <WorkspaceControlPanelButtons>', async () => {
        await expect(page).toMatchElement('#add-plugin-component-a');
        await expect(page).toMatchElement('#add-plugin-component-b');
      });
    
      it('wrapped and added plugins will be added to <WindowTopBarPluginMenu>', async () => {
        await expect(page).toClick('#wrapped-plugin-with-adds button');
        await expect(page).toMatchElement('#add-plugin-component-c');
        await expect(page).toMatchElement('#wrapped-plugin-with-adds');
      });
    });