Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

setup-expect-timeout.js

Blame
    • Loïs Poujade's avatar
      c15d3156
      Fix VideoViewer component tests · c15d3156
      Loïs Poujade authored
      - use Manifesto Utils.parseManifest to feed data to component
      - add integrations tests for captions
      - remove component captions tests (cf #13)
      - extend expect-puppeteer timeout to 2s
      c15d3156
      History
      Fix VideoViewer component tests
      Loïs Poujade authored
      - use Manifesto Utils.parseManifest to feed data to component
      - add integrations tests for captions
      - remove component captions tests (cf #13)
      - extend expect-puppeteer timeout to 2s
    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"]');
      });
    });