bug: `goto()` and `waitForChanges()` can return before all components hydrate

Open
#57 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
playwright, typescript
Domain
testing-qa

Research direction

Start by checking out the waitForChanges-nested-sb branch from the reproduction repository, then run npm install, npm run build, and npm run test. Compare the "label with nested component over default network" and "label with nested component over slow network" cases. Done means goto() and waitForChanges() wait for nested third-party Stencil components so the slow-network case passes.

Written by the indexing model from the issue text.

Description

Prerequisites
Stencil Playwright Version

0.2.1

Current Behavior

Given enough network latency and a 3rd-party Stencil component nested inside a local component, the Page.goto() and/or Page.waitForChanges() methods can return before the 3rd-party Stencil component finishes hydrating.

Expected Behavior

Nested, 3rd-party components are included in the goto() and waitForChanges() waiting.

Steps to Reproduce
  1. Checkout the repo and switch to the @stencil/playwright/waitForChanges-nested-sb branch, if needed.
  2. Run npm install
  3. Run npm run build
  4. Run npx playwright install, if needed
  5. Run npm run test
  6. See the "label with nested component over default network" passes while the "label with nested component over slow network" fails
Code Reproduction URL

http://github.com/nwhittaker/stencil-component/tree/%40stencil/playwright/waitForChanges-nested-sb

Additional Information

No response

Dominant language
TypeScript
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stenciljs/playwright

All issues in stenciljs/playwright

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.