Skip to content

Commit

Permalink
#466@trivial: Fixes MutationObserver and adds support for BrowserFram…
Browse files Browse the repository at this point in the history
…e.waitForNavigation().
  • Loading branch information
capricorn86 committed Jan 10, 2024
1 parent 4264264 commit 2211596
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/happy-dom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ const page = browser.newPage();
// Navigates page
await page.goto('https://github.com/capricorn86');

// Waits for all operations on the page to complete (fetch, timers etc.)
await page.waitUntilComplete();

// Clicks on link
page.mainFrame.document.querySelector('a[href*="capricorn86/happy-dom"]').click();

Expand Down
2 changes: 1 addition & 1 deletion packages/integration-test/test/tests/Browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Browser', () => {
await page.goto('https://github.com/capricorn86');

page.mainFrame.document.querySelector('a[href="/capricorn86/happy-dom"]').click();
await page.waitForNavigation();
await page.waitUntilComplete();

expect(page.mainFrame.url).toBe('https://github.com/capricorn86/happy-dom');
expect(
Expand Down

0 comments on commit 2211596

Please sign in to comment.