|
| 1 | +--- |
| 2 | +slug: simplifying-test-automation-infrastructure |
| 3 | +title: Simplifying test automation infrastructure |
| 4 | +authors: [jan-molak] |
| 5 | +tags: |
| 6 | + - core |
| 7 | + - serenity-bdd |
| 8 | + - open-source |
| 9 | +--- |
| 10 | + |
| 11 | +The Serenity/JS team is excited to unveil version 3.30, a release focused on helping you simplify your test automation infrastructure. |
| 12 | +This update introduces: |
| 13 | +- streamlined installation process for Serenity BDD, |
| 14 | +- support for Node-only artifact registries like Verdaccio, |
| 15 | +- support for Playwright 1.49, |
| 16 | +- all Serenity/JS Project Templates updated to reflect these improvements. |
| 17 | + |
| 18 | +Let’s explore what’s new! |
| 19 | + |
| 20 | +:::tip New to Serenity/JS? |
| 21 | +New to Serenity/JS or test automation? Start with ["Your first web scenario"](/handbook/web-testing/your-first-web-scenario/), |
| 22 | +praised by our community as "the best guide to take your automation skills to the next level." |
| 23 | +::: |
| 24 | + |
| 25 | +## New in Serenity/JS 3.30 |
| 26 | + |
| 27 | +### Streamlined Serenity BDD Installation |
| 28 | + |
| 29 | +One of the most exciting additions in this release is the inclusion of the Serenity BDD CLI jar file directly within the `@serenity-js/serenity-bdd` Node module. |
| 30 | +This improvement eliminates the need for a separate download, helps to simplify the installation process, and reduces friction for teams getting started with Serenity/JS |
| 31 | +([#2560](https://github.com/serenity-js/serenity-js/issues/2560)). |
| 32 | + |
| 33 | +We owe special thanks to [Anton Fedorov](https://github.com/fapspirit) from Amazon Web Services for proposing this feature |
| 34 | +and contributing its implementation. Anton’s work is a fantastic example of the open-source spirit driving Serenity/JS forward. |
| 35 | + |
| 36 | +Thank you, Anton! |
| 37 | + |
| 38 | +### Improved support for private and Node-only artifact registries |
| 39 | + |
| 40 | +Serenity/JS has always supported private artifact registries like Sonatype Nexus or JFrog Artifactory. |
| 41 | +However, corporate proxies and network constraints could sometimes |
| 42 | +make the [setup process](/handbook/reporting/serenity-bdd-reporter/#using-a-custom-serenity-bdd-cli) a bit more complex than we would have liked. |
| 43 | + |
| 44 | +Serenity/JS 3.30 includes the Serenity BDD CLI jar directly in the `@serenity-js/serenity-bdd` Node module. |
| 45 | +This change simplifies your infrastructure by letting you use a single registry for both Node modules and the Serenity BDD CLI jar |
| 46 | +and enables support for Node-only artifact registries like [Verdaccio](https://verdaccio.org/). |
| 47 | + |
| 48 | +### Playwright 1.49 compatibility |
| 49 | + |
| 50 | +Keeping Serenity/JS at the cutting edge of browser automation, this release introduces support for Playwright 1.49. |
| 51 | +With it, you can leverage the latest advancements in browser automation across Chromium, Firefox, and WebKit. |
| 52 | + |
| 53 | +Additionally, Playwright 1.49 brings improved handling and more accurate reporting on nested errors ([playwright#26848](https://github.com/microsoft/playwright/issues/26848)), |
| 54 | +making it easier to diagnose issues with custom Serenity/JS configuration ([#1823](https://github.com/serenity-js/serenity-js/issues/1823)). |
| 55 | + |
| 56 | +### Updated Serenity/JS Project Templates |
| 57 | + |
| 58 | +Getting started with Serenity/JS has never been easier! The [Serenity/JS Project Templates](/handbook/getting-started/project-templates/) have been updated |
| 59 | +to reflect the latest improvements, helping you kickstart your projects with best practices built right in. |
| 60 | + |
| 61 | +## Upgrading to Serenity/JS 3.30 |
| 62 | + |
| 63 | +To upgrade your existing project to Serenity/JS 3.30, use a tool like [`npm-check-updates`](https://www.npmjs.com/package/npm-check-updates): |
| 64 | + |
| 65 | +```sh |
| 66 | +npx -y npm-check-updates '/@serenity-js|playwright/' -u |
| 67 | +``` |
| 68 | + |
| 69 | +Next, remove the call to `serenity-bdd update` from your `package.json` file: |
| 70 | + |
| 71 | +```diff |
| 72 | +{ |
| 73 | + "scripts": { |
| 74 | +- "postinstall": "serenity-bdd update", |
| 75 | + "clean": "rimraf target", |
| 76 | + "test": "failsafe clean test:execute test:report", |
| 77 | + "test:execute": "playwright test", |
| 78 | + "test:report": "serenity-bdd run" |
| 79 | + } |
| 80 | +} |
| 81 | +``` |
| 82 | + |
| 83 | +Finally, install the updated modules: |
| 84 | + |
| 85 | +```npm2yarn |
| 86 | +npm install |
| 87 | +``` |
| 88 | + |
| 89 | +## Your feedback matters! |
| 90 | + |
| 91 | +I hope this latest release of Serenity/JS will make it even easier for you and your team to create high-quality test automation. |
| 92 | + |
| 93 | +Let me know what you think of the new features in the [comments below](/blog/better-api-documentation/#giscus-comments) 👇👇👇 |
| 94 | + |
| 95 | +### 📣 Stay up to date |
| 96 | + |
| 97 | +New features, tutorials, and demos are coming soon! |
| 98 | +Follow [Serenity/JS on LinkedIn](https://www.linkedin.com/company/serenity-js), |
| 99 | +subscribe to [Serenity/JS channel on YouTube](https://www.youtube.com/@serenity-js) and join the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im) to stay up to date! |
| 100 | +Please also make sure to star ⭐️ [Serenity/JS on GitHub](https://github.com/serenity-js/serenity-js) to help others discover the framework! |
| 101 | + |
| 102 | +[](https://www.linkedin.com/company/serenity-js) |
| 103 | +[](https://www.youtube.com/@serenity-js) |
| 104 | +[](https://matrix.to/#/#serenity-js:gitter.im) |
| 105 | +[](https://github.com/serenity-js/serenity-js) |
| 106 | + |
| 107 | +### 💛 Support Serenity/JS |
| 108 | + |
| 109 | +If you appreciate all the effort that goes into making sophisticated tools easy to work with, please support our work and become a Serenity/JS GitHub Sponsor today! |
| 110 | + |
| 111 | +[](https://github.com/sponsors/serenity-js) |
0 commit comments