chore: remove skip and add more frame.name() instructions (#12085)

This commit is contained in:
jrandolf 2024-03-13 15:44:42 +01:00 committed by GitHub
parent 0203b4533d
commit 1a05d37cf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ sidebar_label: Frame.name
>
> ```ts
> const element = await frame.frameElement();
> const name = await element.evaluate(frame => frame.name);
> const nameOrId = await element.evaluate(frame => frame.name ?? frame.id);
> ```
The frame's `name` attribute as specified in the tag.

View File

@ -765,7 +765,7 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
*
* ```ts
* const element = await frame.frameElement();
* const name = await element.evaluate(frame => frame.name);
* const nameOrId = await element.evaluate(frame => frame.name ?? frame.id);
* ```
*/
name(): string {

View File

@ -777,7 +777,7 @@ describe('Launcher specs', function () {
await close();
}
});
it.skip('should be able to reconnect to a disconnected browser', async () => {
it('should be able to reconnect to a disconnected browser', async () => {
const {puppeteer, server, browser, close} = await launch({});
try {
const browserWSEndpoint = browser.wsEndpoint();