Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serenity-js/web

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serenity-js/web - npm Package Compare versions

Comparing version 3.1.6 to 3.2.0

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

# [3.2.0](https://github.com/serenity-js/serenity-js/compare/v3.1.6...v3.2.0) (2023-05-05)
### Bug Fixes
* **core:** use "types" instead of "typings" in package.json files ([b83d922](https://github.com/serenity-js/serenity-js/commit/b83d922076242c6cd5d6f2da055a05aa5e77f11b)), closes [#1682](https://github.com/serenity-js/serenity-js/issues/1682)
### Features
* **core:** introduced support for Node.js 20, dropped support for Node.js 14 ([491fef8](https://github.com/serenity-js/serenity-js/commit/491fef8df672a2b40d247887b3da409dccbd26fd)), closes [#1678](https://github.com/serenity-js/serenity-js/issues/1678)
## [3.1.6](https://github.com/serenity-js/serenity-js/compare/v3.1.5...v3.1.6) (2023-04-18)

@@ -8,0 +24,0 @@

6

lib/screenplay/interactions/ExecuteScript.js

@@ -249,3 +249,3 @@ "use strict";

return page.executeAsyncScript(
/* istanbul ignore next */
/* c8 ignore start */
function executeScriptFromUrl(sourceUrl, callback) {

@@ -268,3 +268,5 @@ const alreadyLoadedScripts = Array.prototype.slice

document.head.append(script);
}, sourceUrl)
}, sourceUrl
/* c8 ignore stop */
)
.then(errorMessage => {

@@ -271,0 +273,0 @@ if (errorMessage) {

@@ -126,3 +126,3 @@ "use strict";

await page.executeScript(
/* istanbul ignore next */
/* c8 ignore next */
function focus(element) {

@@ -129,0 +129,0 @@ element.focus();

@@ -5,3 +5,3 @@ "use strict";

/* eslint-disable unicorn/no-for-loop,unicorn/consistent-function-scoping */
/* istanbul ignore next */
/* c8 ignore start */
function isVisible(domNode) {

@@ -97,2 +97,3 @@ const style = window.getComputedStyle(domNode);

exports.isVisible = isVisible;
/* c8 ignore stop */
//# sourceMappingURL=isVisible.js.map
{
"name": "@serenity-js/web",
"version": "3.1.6",
"version": "3.2.0",
"description": "Serenity/JS Screenplay Pattern APIs for the Web",

@@ -19,3 +19,3 @@ "author": {

"main": "lib/index.js",
"typings": "lib/index.d.ts",
"types": "./lib/index.d.ts",
"keywords": [

@@ -32,3 +32,4 @@ "serenity-js",

"clean": "rimraf target",
"test": "nyc mocha --config ../../.mocharc.yml 'spec/**/*.spec.*'",
"test": "c8 npm run test:no-coverage",
"test:no-coverage": "mocha --config ../../.mocharc.yml 'spec/**/*.spec.*'",
"compile": "rimraf lib && tsc --project tsconfig.build.json"

@@ -45,8 +46,7 @@ },

"engines": {
"node": "^14 || ^16 || ^18",
"npm": "^6 || ^7 || ^8 || ^9"
"node": "^16.13 || ^18.12 || ^20"
},
"dependencies": {
"@serenity-js/assertions": "3.1.6",
"@serenity-js/core": "3.1.6",
"@serenity-js/assertions": "3.2.0",
"@serenity-js/core": "3.2.0",
"tiny-types": "^1.19.1"

@@ -58,9 +58,9 @@ },

"@types/mocha": "^10.0.1",
"c8": "7.13.0",
"mocha": "^10.2.0",
"mocha-multi": "^1.1.7",
"nyc": "15.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
"gitHead": "825ecf4f0dd507e78da8b0634f659ecd3ddfb976"
"gitHead": "e69cea764f50991c3ad742f28926b4345b3e2422"
}

@@ -8,11 +8,38 @@ # Serenity/JS

[Serenity/JS](https://serenity-js.org) is an innovative framework designed to make acceptance and regression testing
[Serenity/JS](https://serenity-js.org) is an innovative open-source framework designed to make acceptance and regression testing
of complex software systems faster, more collaborative and easier to scale.
To get started, check out the comprehensive [Serenity/JS Handbook](https://serenity-js.org/handbook), [API documentation](https://serenity-js.org/api/core), and [Serenity/JS project templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates).
⭐️ Get started with Serenity/JS!
- [Serenity/JS Handbook](https://serenity-js.org/handbook) and [tutorial](https://serenity-js.org/handbook/web-testing/your-first-web-scenario),
- [API documentation](https://serenity-js.org/api/core),
- [Serenity/JS project templates on GitHub](https://serenity-js.org/handbook/getting-started#serenityjs-project-templates).
If you have any questions or just want to say hello, join the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im).
👋 Join the Serenity/JS Community!
- Meet other Serenity/JS developers and maintainers on the [Serenity/JS Community chat channel](https://matrix.to/#/#serenity-js:gitter.im),
- Find answers to your Serenity/JS questions on the [Serenity/JS Forum](https://github.com/orgs/serenity-js/discussions/categories/how-do-i),
- Learn how to [contribute to Serenity/JS](https://serenity-js.org/contributing),
- Support the project and gain access to [Serenity/JS Playbooks](https://github.com/serenity-js/playbooks) by becoming a [Serenity/JS GitHub Sponsor](https://github.com/sponsors/serenity-js)!
## Serenity/JS Web
[`@serenity-js/web`](https://serenity-js.org/modules/web/) contains Serenity/JS Screenplay Pattern APIs for testing Web apps.
[`@serenity-js/web`](https://serenity-js.org/api/web/) offers Serenity/JS [Screenplay Pattern](https://serenity-js.org/handbook/design/screenplay-pattern) APIs for testing web apps.
Learn more about [web testing with Serenity/JS](https://serenity-js.org/handbook/web-testing/)!
## 📣 Stay up to date
New features, tutorials, and demos are coming soon!
Follow [Serenity/JS on LinkedIn](https://www.linkedin.com/company/serenity-js),
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!
Please also make sure to star ⭐️ [Serenity/JS on GitHub](https://github.com/serenity-js/serenity-js) to help others discover the framework!
[![Follow Serenity/JS on LinkedIn](https://img.shields.io/badge/Follow-Serenity%2FJS%20-0077B5?logo=linkedin)](https://www.linkedin.com/company/serenity-js)
[![Watch Serenity/JS on YouTube](https://img.shields.io/badge/Watch-@serenity--js-E62117?logo=youtube)](https://www.youtube.com/@serenity-js)
[![Join Serenity/JS Community Chat](https://img.shields.io/badge/Chat-Serenity%2FJS%20Community-FBD30B?logo=matrix)](https://matrix.to/#/#serenity-js:gitter.im)
[![GitHub stars](https://img.shields.io/github/stars/serenity-js/serenity-js?label=Serenity%2FJS&logo=github&style=badge)](https://github.com/serenity-js/serenity-js)
## 💛 Support Serenity/JS
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!
[![GitHub Sponsors](https://img.shields.io/badge/Support%20@serenity%2FJS-703EC8?style=for-the-badge&logo=github&logoColor=white)](https://github.com/sponsors/serenity-js)

@@ -282,3 +282,3 @@ import { Answerable, AnswersQuestions, CollectsArtifacts, f, Interaction, LogicError, UsesAbilities } from '@serenity-js/core';

return page.executeAsyncScript(
/* istanbul ignore next */
/* c8 ignore start */
function executeScriptFromUrl(sourceUrl: string, callback: (message?: string) => void) {

@@ -306,2 +306,3 @@ const alreadyLoadedScripts = Array.prototype.slice

sourceUrl
/* c8 ignore stop */
)

@@ -308,0 +309,0 @@ .then(errorMessage => {

@@ -133,3 +133,3 @@ import { Activity, Answerable, AnswersQuestions, d, Interaction, Question, UsesAbilities } from '@serenity-js/core';

await page.executeScript(
/* istanbul ignore next */
/* c8 ignore next */
function focus(element: any) {

@@ -136,0 +136,0 @@ element.focus();

/* eslint-disable unicorn/no-for-loop,unicorn/consistent-function-scoping */
/* istanbul ignore next */
/* c8 ignore start */
export function isVisible(domNode: HTMLElement): boolean {

@@ -114,1 +114,2 @@

}
/* c8 ignore stop */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc