Skip to content
Snippets Groups Projects
Select Git revision
  • 15-api-for-annotations-on-video
  • annotation-on-video default protected
  • demo_ci
  • 3-upstream-01022023
  • master
  • gh3538-captions
  • 16-adapt-for-images-annot
  • 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
15 results

webpack.config.js

Blame
  • main.js 753 B
    describe('Open example', () => {
      beforeAll(async () => {
        await page.goto('https://example.org');
      });
      it('has the correct page title', async () => {
        const title = await page.title();
        expect(title).toBe('Example Domain');
      });
      it('has the main text', async () => {
        await expect(page).toMatchElement('a[href="https://www.iana.org/domains/example"]');
      });
    });
    
    describe('Open local HTTP server', () => {
      beforeAll(async () => {
        await page.goto('http://127.0.0.1:4488');
      });
      it('has the correct page title', async () => {
        const title = await page.title();
        expect(title).toBe('Index of /');
      });
      it('has the correct link', async () => {
        await expect(page).toMatchElement('a[href="./jest.json"]');
      });
    });