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

basic_video.test.js

Blame
  • basic_video.test.js 903 B
    describe('Basic end to end Mirador with video content', () => {
      beforeAll(async () => {
        await page.goto('http://localhost:4488/__tests__/integration/mirador/video.html');
      });
      it('loads a manifest and displays it', async () => {
        await page.waitForSelector('#addBtn');
        await expect(page).toClick('#addBtn');
        await expect(page).toClick('.mirador-add-resource-button');
        await expect(page).toFill('#manifestURL', 'http://localhost:4488/__tests__/fixtures/version-3/video.json');
        await expect(page).toClick('#fetchBtn');
        await expect(page).toMatchElement('[data-manifestid="http://localhost:4488/__tests__/fixtures/version-3/video.json"] button');
        await expect(page).toClick('[data-manifestid="http://localhost:4488/__tests__/fixtures/version-3/video.json"] button');
        await expect(page).toMatchElement(
          'h2',
          { text: /Video Example 3/ },
        );
      });
    });