-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Feature]: Disable time shown for each line of execution #34248
[Feature]: Disable time shown for each line of execution #34248
Comments
Based on the screenshot you shared, it looks to me that If you believe there's a bug with Playwright here, please create a reproduction repo that showcases this on a blank project. |
Thanks Scott, i tried sending a private chat in Discord... |
I was helping out with testing this. The issue we were having is that the playwright vscode plugin is taking a very long time to process through its UI update events to highlight the line it's on and add on the execution time. It would be nice to be able to disable these vscode UI updates for these instances where there are a lot of things done in a loop. |
Gotcha! So you're saying that it's correct that this happens so often, but it creates a performance problem in the UI. I can take a look at that. |
Oooops forgot, and turned the machine off... I'll make a point to keep it up for a while... |
Can reproduce. After a while, VS Code just hangs completely. I'm assuming that we're hitting some kind of performance bottleneck inside VS Code. |
🚀 Feature Request
Not sure if this is a bug or a feature request. When running a test, as well as a couple other people trying it, seems the VS Code Plug is reporting the time taken per line and how long it took to execute. When debugging in VS code my box (all local) the test runs in 10 minutes, friends box13, but that would be Seattle to NZ...
That said in the code about 3 lines from the bottom i put " // set break point here...". While the test takes 10 minutes to run, once the code hits the break point, VS Code will spend the next 1.5 HOURS doing nothing than what appears to update the time each line took to run... The one difference between my box and my friend in NZ, his box has less ram, and he mentioned a couple times VS Code crashed, but just a guess either out of memory or something was off. and my box i haven't seen that but i have 128Gb ram.
So it this bug of a feature request, right not not sure.
`
import type { Locator } from '@playwright/test';
import { test } from '@playwright/test';
const getListElements = async (listCtrl: Locator): Promise<string[]> => {
const ctrlLocator = listCtrl.locator('option');
return await ctrlLocator.allTextContents();
};
const bibleUrl = 'http://ask for url/';
test.only('vs code freezes for debug execution times', async ({ page }) => {
const versionLimit = 17;
const bookLimit = 500;
const chapterLimit = 500;
await page.goto(bibleUrl);
const versionCtrl = page.locator('#versions');
const bookCtrl = page.locator('#books');
const chapterCtrl = page.locator('#chapters');
await versionCtrl.waitFor();
const versionsList = await getListElements(versionCtrl);
for (const [versionIndex, version] of versionsList.entries()) {
if (versionIndex > versionLimit) {
console.log('Reached version limit');
break;
}
await test.step(
Version ${version}
, async () => {await versionCtrl.selectOption(version);
const booksList = await getListElements(bookCtrl);
for (const [bookIndex, book] of booksList.entries()) {
if (bookIndex > bookLimit) {
console.log('Reached book limit');
break;
}
await test.step(
Book ${book}
, async () => {await bookCtrl.selectOption(book);
const chapterList = await getListElements(chapterCtrl);
for (const [chapterIndex, chapter] of chapterList.entries()) {
if (chapterIndex > chapterLimit) {
console.log('Reached chapter limit');
break;
}
await chapterCtrl.selectOption(chapter);
}
});
}
});
} // set break point here...
});
`
My attempt to file a bug on VS Code,
microsoft/vscode#235706 (comment)
What i'll see for about 1.5 HOURS when vs code is frozen but do see the screen time times flickering...
Example
No response
Motivation
Prevent wasting hours. Seems nothing is effective being performed, and simply waste a lot of time for no reason...
The text was updated successfully, but these errors were encountered: