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

[BUG] Multiple type commands in one Promise.all do not resolve correctly #12776

Closed
kapros opened this issue Mar 15, 2022 · 1 comment
Closed

Comments

@kapros
Copy link

kapros commented Mar 15, 2022

Context:

  • Playwright Version: 1.91.1
  • Operating System: all
  • Node.js version: 14.17.6, possibly all
  • Browser: chromium
  • Extra:

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:

const {chromium, webkit, firefox} = require('playwright');

(async () => {
        const  browser = chromium.launch( { headless: false });
        const page = await browser.newPage();
        await page.goto('https://sentry.io/auth/login/');
        await Promise.all([
            page.locator('button').first().click(),
            page.locator('[name="username"]').fill('user'),
            page.locator('[name="password"]').fill('pass')
        ]);
})();

Describe the bug

It appears that if one Promise.all holds many promises that use the fill command, they do not resolve correctly and only one, in this case the password fill command, is successfully types the content into the field. No errors are thrown, it's just the content is never typed. It appears to be specific to type because the click command works in this example.

@pavelfeldman
Copy link
Member

It would be as if 3 people connected 2 keyboards and 1 mouse to the computer and started clicking and typing simultaneously. You are observing the result of this team work!

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

No branches or pull requests

2 participants