Issue 1:
System info

Playwright Version: [v1.XX]

Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

export function Textarea(props: TextareaProps) {
const { required, ...rest } = props;

const [value, setValue] = React.useState(props.value || '');

return (
<>
<textarea
value={value}
onChange={(event) => setValue(event.target.value)}
className="block w-full rounded-md border-0 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 px-3 py-1.5 text-base sm:leading-6"
{...rest}
/>
</>
);
}

[ x ] I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

[https://github.com/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});

Test file (self-contained)

test('should input a value', async ({ mount }) => {
const component = await mount(
<div>
<Textarea value="Hello World!" />
</div>
);

const textbox = component.getByRole('textbox');

await expect(textbox).toContainText('Hello World!');
});

test('should input a value - fail', async ({ mount }) => {
const component = await mount(
<Textarea value="Hello World!" />
);

const textbox = component.getByRole('textbox');

await expect(textbox).toContainText('Hello World!');
});

Steps

[Run the test]

[...]

Expected

Fill the textbox without

tags surrounding the component

[Describe expected behavior]

Actual

Unable to fill the textbox without

tags surrounding the component

waiting for locator('#root').locator('internal:control=component').getByRole('textbox')

[Describe actual behavior]

Issue 2:
System info

Playwright Version: 1.31.2

Operating System: Linux (Jenkins)

Browser: Chromium

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Config file

// playwright.config.ts
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
timeout: 3 * 60 * 1000,
use: {
screenshot: 'only-on-failure',
video: 'off',
trace: 'off',
ignoreHTTPSErrors: true,
},
projects: [
{
name: 'chrome',
use: {
...devices['Desktop Chrome'],
},
},
],
reporter: [
['list'],
['json', { outputFile: 'integration-test-results.json' }],
['html', { open: 'never' }],
['./reporter/status-reporter.ts', { outputFile: 'status-report.json' }],
],
testDir: './src/tests',
webServer: {
command: 'yarn run start',
cwd: '../..',
port: 9090,
timeout: 5 * 60 * 1000,
reuseExistingServer: true,
},
};

Test file (self-contained)

No test are failing

Steps

[Run the test]

[...]

Expected

We are running a test suite containing 200~ tests. All the tests are passing, so we are expecting the run as green

Actual

The test run is returning an error stopping our pipeline, there is no test failure.

216 passed (6.0m)
1 error was not a part of any test, see above for details

I run using 'DEBUG=pw:browser' but nothing specific is reported (a part from certificate errors)

[30;1mpw:browser �[0m<launching> /home/jenkins/.cache/ms-playwright/chromium-1048/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-3LdjwX --remote-debugging-pipe --no-startup-window �[30m+0ms�[0m
�[30;1mpw:browser �[0m<launched> pid=808 �[30m+6ms�[0m