Search posts, tags, users, and pages
You are welcome, Misha! My goal was to explain in details one method, which I found most suitable for huge real world app with test integration in CI/CD. Keep in mind that Artem shared a few different ways to do it and has the boundary to do it in a set timeframe. The goal of his course is to show everything from getting the locators all the wau to custom fixtures. It is not a straight forward task, and in my opinion he has done a fantastic job. For example, I begin with his course too, and I am very thankful for great fundamentals he tought me.
Ivan Davidov 100%- Artem did a great job! But for me the env variables topic was explained very unclearly. And I'm glad that I found your article!
Ivan Davidov BTW, Exploring this topic I found a slightly different approach for setting playwright config:
import as dotenv from 'dotenv' import as path from 'path'
const ENV = process.env.ENVIRONMENT || 'dev'
const envPath = path.resolve(__dirname, ./env/.env.${ENV})
dotenv.config({ path: envPath })
Misha, it is great way to make the code easier to understand. You have done a great job! Be curious and keep experimenting 😎
Misha, yes, I agree with you! The main goal of my blog was to document every major topic, relevent to my work, so I have one place where I can find everything I need. In my articles you will find great insights from many great guys - Stefan Judis, Murat Ozcan, Artem Bondar and Filip Hric. If you are curious, you can check their fantastic work.
Ivan Davidov Oh, great, I'll check them, and thank you for your work!