[wp-trac] [WordPress Trac] #53737: Create a way to autogenerate end-to-end test code from manual testing steps for WordPress core
WordPress Trac
noreply at wordpress.org
Thu Jul 22 12:17:32 UTC 2021
#53737: Create a way to autogenerate end-to-end test code from manual testing steps
for WordPress core
------------------------------+-----------------------------
Reporter: psykro | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
As part of the proposal to [https://make.wordpress.org/core/2020/08/07
/e2e-end-to-end-testing-in-core-working-group-proposal/ bring end-to-end
(e2e) testing to WordPress core], we would like to find a way to
autogenerate end-to-end tests from manual testing steps.
WordPress uses the [https://jestjs.io/ Jest] test framework for its e2e
tests. Jest uses JavaScript code to create tests. Like most testing
frameworks, it's built for developers who code the tests to be run on the
front end, typically via a decoupled browser instance.
However, this means that only those familiar with writing JavaScript code
would be able to create new or edit existing tests. This creates a barrier
to entry for those who would like to contribute to testing efforts but are
not coders.
Traditionally performing front-end testing would have been done by
contributors following a manual process (i.e., physically filling in
fields, clicking on buttons, etc.). Therefore, it would make sense to find
a way to continue to allow these testers to contribute to the e2e test
suite.
We would like to find a way to autogenerate e2e tests, to somehow record
and save the process of manual testing and convert that into JavaScript
code that is compatible with the Jest framework.
This initiative aims to empower any contributor to contribute to the e2e
testing efforts without knowing how to code an automated test.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53737>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list