Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(test) e2e timeout configurable #2662

Closed
wants to merge 1 commit into from

Conversation

bitflower
Copy link
Contributor

Hi,
introduces the possiblity to set the timeout of setContent of newE2EPage and solves #2497.

You have 2 options to set the timeout:

  • on page setup
  • directly on setContent

Example:

import { newE2EPage } from '@stencil/core/testing';

describe('chart-js-realtime', () => {
  it('renders', async () => {
    const page = await newE2EPage({ timeout: 10000 }); // Option 1

    await page.setContent('<chart-js-realtime></chart-js-realtime>', {
      timeout: 10000 // Option 2
    });
    const element = await page.find('chart-js-realtime');
    expect(element).toHaveClass('hydrated');
  });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant