-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ON-WEEK][POC] Playwright #190803
[ON-WEEK][POC] Playwright #190803
Conversation
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
Co-authored-by: Aleh Zasypkin <[email protected]>
MISSING REVIEWSFiles by Code Ownerelastic/appex-qa
elastic/kibana-operations
|
.buildkite/scripts/steps/functional/security_serverless_playwright.sh
Outdated
Show resolved
Hide resolved
.buildkite/scripts/steps/functional/security_solution_playwright.sh
Outdated
Show resolved
Hide resolved
…ight.sh Co-authored-by: Jon <[email protected]>
…ht.sh Co-authored-by: Jon <[email protected]>
x-pack/plugins/security_solution/scripts/run_playwright/playwright.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/scripts/run_playwright/playwright.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.buildkite
/ kbn_pm/src/lib/bazel.mjs
lgtm
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appex-QA changes lgtm
UPDATE
It has been removed the execution of the playwright tests on buildkite, the execution will be re-enabled as soon as we are ready and as described below in the PR, there are still steps pending to be done.
Motivation
Cypress is not performing well lately.
Teams are finding it increasingly challenging to write new tests and debug existing ones.
Concern about the impact this could have on our testing practices.
Why Playwright?
Compared to Cypress, Playwright seems to be known for its faster execution times and lower resource consumption. What could have a positive impact by having faster feedback during development and execution of new tests as well as more efficient use of CI resources.
Provides powerful debugging tools which can make easier to write, debug and execute tests.
Seems to provide the same capabilities we currently use in our Cypress tests.
Given Playwright's active development and backing by Microsoft, it is likely to continue evolving rapidly, making it a safe long-term choice.
Considering all the above, Playwright seems to be a strong candidate to replace Cypress and address all the issues we are facing lately regarding UI test automation.
Objective of this POC
To write in Playwright a couple of tests we currently have on Cypress to check the performance of the tool as well as the development experience.
The tests selected have been:
enable_risk_score_redirect.cy.ts
manual_rule_run.cy.ts
How to execute the tests
Visual mode
x-pack/test/security_solution_playwright
yarn open:ess
for ESS environment oryarn open:serverless
for serverless environment.Headless mode
x-pack/test/security_solution_playwright
yarn run:ess
for ESS environment oryarn run:serverless
for serverless environment.From VScode
Playwright Test for VScode
extension by Microsoftx-pack/test/security_solution_playwright
yarn open:ess
for ESS environment oryarn open:serverless
for serverless environment.Testing
iconTest Explorer
click on the three dots to select the profile you are going to executeess
orserverless
My experience
The scope of this PR
Pending to be done/investigate
FAQ
Can I start adding tests to playwright?
Currently, you can explore and experiment with Playwright, but there is still work pending to be done to make the tool officially usable.
Why security engineering productivity is the owner of the playwright folder?
This is something temporary to make sure that good practices are followed.