Skip to content
Snippets Groups Projects
Select Git revision
  • e7ba59a9ab3d0f19a08056b8be06e95ebb7bcd23
  • 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

validate.test.js

  • validate.test.js 942 B
    describe('pass valid and invalid plugins to <WorkspaceControlPanelButtons>', () => {
      beforeAll(async () => {
        await page.goto('http://127.0.0.1:4488/__tests__/integration/mirador/plugins/validate.html');
        await expect(page).toMatchElement('.mirador-viewer');
        await page.waitForTimeout(1000);
      });
    
      it('valid plugins will be applied <WorkspaceControlPanelButtons>', async () => {
        await expect(page).toMatchElement('#valid-plugin-a');
      });
    
      it('invalid plugins will not be applied <WorkspaceControlPanelButtons>', async () => {
        await expect(page).not.toMatchElement('#invalid-plugin-a');
        await expect(page).not.toMatchElement('#invalid-plugin-b');
        await expect(page).not.toMatchElement('#invalid-plugin-c');
        await expect(page).not.toMatchElement('#invalid-plugin-d');
        await expect(page).not.toMatchElement('#invalid-plugin-e');
        await expect(page).not.toMatchElement('#invalid-plugin-f');
      });
    });