Skip to content
Snippets Groups Projects
Select Git revision
  • 45ba8066011748748f9946a5f2d8285ffe7d9d04
  • mui5-annotation-on-video-stable default
  • get_setter_canvasSizeInformations
  • fix-error-div-into-p
  • annotation-on-video-v2
  • detached
  • annotation-on-video-r17
  • mui5
  • mui5-react-18
  • jacob-test
  • annotation-on-video protected
  • master
  • test-antoinev1
  • 20-fetch-thumbnail-on-annotation
  • add-research-field
  • Save
  • add-plugin
  • 14-wip-no-seek-to
  • 14-bug-on-video-time-control
  • 9_wip_videotests
  • _upgrade_material_ui
  • latest-tetras-16
  • v3.3.0
  • v3.2.0
  • v3.1.1
  • v3.1.0
  • v3.0.0
  • v3.0.0-rc.7
  • v3.0.0-rc.6
  • v3.0.0-rc.5
  • v3.0.0-rc.4
  • v3.0.0-rc.3
  • v3.0.0-rc.2
  • v3.0.0-rc.1
  • v3.0.0-beta.10
  • v3.0.0-beta.9
  • v3.0.0-beta.8
  • v3.0.0-beta.7
  • v3.0.0-beta.6
  • v3.0.0-beta.5
  • v3.0.0-beta.3
41 results

vanilla-js.test.js

Blame
  • user avatar
    Christopher Hanna Johnson authored and Christopher Johnson committed
    splits fixtures in directories by api version
    45ba8066
    History
    vanilla-js.test.js 741 B
    describe('Plain JavaScript example', () => {
      beforeAll(async () => {
        await page.goto('http://127.0.0.1:4488/__tests__/integration/vanilla-js/');
      });
      it('has the correct page title', async () => {
        const title = await page.title();
        expect(title).toBe('Examples');
      });
      it('loads a manifest and displays it', async () => {
        await expect(page).toFill('#manifestURL', 'http://localhost:5000/api/sn904cj3439');
        await expect(page).toClick('#fetchBtn');
        // TODO: Refactor the app so we get rid of the wait
        await page.waitFor(1000);
        const manifest = await page.$eval('#exampleManifest', e => e.innerHTML);
        await expect(manifest).toMatch(/http:\/\/iiif\.io\/api\/presentation\/2\/context\.json/);
      });
    });