Playwright Jest Config & Launch Browser | Playwright - Part 2

preview_player
Показать описание
In this video, we're going to learn how to launch the browser and also how to configure the jest with typescript.

Code:

"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
"scripts": {
"test": "jest"
},

Chapters:
0:00 Jest Config
1:15 What is chromium?
5:40 TS & Jest Config
10:40 Recap

#playwright #letcode

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

I searched for Playwright tutorial and i end up here. Good content. Thank you

arunprasath
Автор

It will be helpful if you start from scratch

Arasuari
Автор

I am facing error while writing describe keyword...

prateekverma
Автор

Hi Koushik, thank you for the great series. Could you enable auto-generated subtitles for all videos? English is not my first language, so the Engsub will help me a lot to understand your tutorial. Thanks

HoangAnh-yskc
Автор

Hi Koushik, Thanks for making such a nice tutorial series. I have a query: How we will create BDD (or other) framework in PlayWright? Which tools we require to do so? Thanks

swadeepnagar
Автор

@koushik Do you have any platform or code review forum to discuss about issues coming up in YouTube videos to be discussed. Kindly do update. Thanks.

dwaragnaththangamani
Автор

Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
Am getting above error again and again plz help me how to resolve

vinothkanna
Автор

Hi Koushik thanks for the nice tutorial. What would you choose btw Protractor and Playwright and why? Thanks

raghunaths.v
Автор

I'm new to typescript but guest what i will learn playwright first

simoachangli
Автор

Bro engha office la playwright with typescript padichi script pottu katta sollirukangha. Endha playlist dha first pakkanum ella vera edhachi erukka.. because jasmine soldringha protector soldringha jest soldringha purila

doowjop
Автор

Hi Koushik,
am getting cannot find module '../traverse/traversefast'
Require stack error while executing "jest login.test.ts command". Please suggest the solution

smithathomas
Автор

Could you tell me, why better the mentioned method to launch a webpage, then :
test.beforeEach(async ({ page }) => {

const baseUrl = 'https:...'
await page.goto(baseUrl )}
Or it is does not matter? (I have only one browser chrome)

danielkovacs
Автор

Despite having headerless false and close browser, this error is still coming. How can I fix it? Kindly Tell me

"" Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within
the 5000 ms timeout specified by jest.setTimeout.Error:""

nomanshahid
Автор

Hi Koushik, I am getting Cannot find module 'playwright' or its corresponding type declarations. Error
What is the best solution for this??

supriyareddy
Автор

How get red flag to FAIL word? and yellow for RUNS

danielkovacs
Автор

Hi Kaushik
Nice tutorial.
Can you please give detailed tutorial of playwright -typescript using cucumber(BDD)
I need it for my new project

priyam
Автор

Hi Koushik,
I am getting Error at Launch Browser › Open URL
Like:
Timeout - Async callback was not invoked within the 3000 ms timeout specified by jest.setTimeout.Timeout
- Async callback was not invoked within the 3000 ms timeout specified by jest.setTimeout.Error:

How to fix this issue, Please help me

arunkumarm
Автор

Hi Koushik,
I want to use single class object across multiple test suits in playwright, is it possible here?
I tried various solutions, but not working, could you please help me here..
Thank you!

aakashpatkar
Автор

Nice video bro. When installing npm playwrigght browser in vscode, i'm getting failed error which says "unable to install chromium and get local issuer certificate" in my company laptop. DO you have any suggestion?

NG-tcmh
Автор

Hey Koushik,

When I install Playwright my dev dependencies does not include Jest, I closely followed your tutorial. In devDependencies I only have

I cannot continue the tutorial it is always saying Jest is not recognized command, any help ?

Aowek