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

@serenity-js/playwright-test

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serenity-js/playwright-test - npm Package Compare versions

Comparing version 3.0.0-rc.40 to 3.0.0-rc.41

18

CHANGELOG.md

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

# [3.0.0-rc.41](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.40...v3.0.0-rc.41) (2023-02-07)
### Bug Fixes
* **core:** easier configuration and automatic colour support detection for AnsiDiffFormatter ([637ed44](https://github.com/serenity-js/serenity-js/commit/637ed44ffb16484544ade975bcbc4c3929ffe8f9)), closes [#1486](https://github.com/serenity-js/serenity-js/issues/1486)
* **playwright:** upgraded Playwright to 1.30.0 ([305a2c2](https://github.com/serenity-js/serenity-js/commit/305a2c258c06aa55685f99237cf3d3ce3c590122))
### Features
* **assertions:** diffs included in RuntimeErrors are now colour-coded ([f88efb4](https://github.com/serenity-js/serenity-js/commit/f88efb48180924351e8f7b25c44f3560b0e01b0d)), closes [#1486](https://github.com/serenity-js/serenity-js/issues/1486)
* **core:** overridable abilities ([03966cc](https://github.com/serenity-js/serenity-js/commit/03966ccae40d102b7dbca1125beb90ceda8fbc50))
# [3.0.0-rc.40](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.39...v3.0.0-rc.40) (2023-01-06)

@@ -8,0 +26,0 @@

1

lib/api/test-api.js

@@ -124,2 +124,3 @@ "use strict";

core_1.serenity.configure({
diffFormatter: new core_1.AnsiDiffFormatter(),
cueTimeout: asDuration(cueTimeout),

@@ -126,0 +127,0 @@ crew: [

12

package.json
{
"name": "@serenity-js/playwright-test",
"version": "3.0.0-rc.40",
"version": "3.0.0-rc.41",
"description": "Serenity/JS reporter and test APIs for Playwright Test",

@@ -47,6 +47,6 @@ "author": {

"dependencies": {
"@playwright/test": "^1.29.1",
"@serenity-js/core": "3.0.0-rc.40",
"@serenity-js/playwright": "3.0.0-rc.40",
"@serenity-js/web": "3.0.0-rc.40",
"@playwright/test": "^1.30.0",
"@serenity-js/core": "3.0.0-rc.41",
"@serenity-js/playwright": "3.0.0-rc.41",
"@serenity-js/web": "3.0.0-rc.41",
"deepmerge": "^4.2.2",

@@ -64,3 +64,3 @@ "tiny-types": "^1.19.0"

},
"gitHead": "94e7c72355737fe8bf1ad005c1677af13aa8e872"
"gitHead": "e74f8f4989f18fe37edde3f8500b2084289d385b"
}
import { test as base, TestInfo } from '@playwright/test';
import { Cast, Duration, serenity as serenityInstance, TakeNotes } from '@serenity-js/core';
import { AnsiDiffFormatter, Cast, Duration, serenity as serenityInstance, TakeNotes } from '@serenity-js/core';
import { SceneFinishes, SceneTagged } from '@serenity-js/core/lib/events';

@@ -117,2 +117,3 @@ import { BrowserTag, PlatformTag } from '@serenity-js/core/lib/model';

serenityInstance.configure({
diffFormatter: new AnsiDiffFormatter(),
cueTimeout: asDuration(cueTimeout),

@@ -181,3 +182,3 @@ crew: [

page: async ({ actor }, use) => {
const page = (await BrowseTheWebWithPlaywright.as(actor).currentPage()) as PlaywrightPage;
const page = (await BrowseTheWebWithPlaywright.as(actor).currentPage()) as unknown as PlaywrightPage;
const nativePage = await page.nativePage();

@@ -184,0 +185,0 @@

@@ -1,2 +0,3 @@

import { TestError, TestInfo } from '@playwright/test';
import { TestInfo } from '@playwright/test';
import { Location, TestError } from '@playwright/test/reporter';
import { Stage, StageCrewMember } from '@serenity-js/core';

@@ -22,20 +23,2 @@ import {

// https://github.com/microsoft/playwright/blob/04f77f231981780704a3a5e2cea93e3c420809a0/packages/playwright-test/types/testReporter.d.ts#L524
interface Location {
/**
* Path to the source file.
*/
file: string;
/**
* Line number in the source file.
*/
line: number;
/**
* Column number in the source file.
*/
column: number;
}
// https://github.com/microsoft/playwright/blob/04f77f231981780704a3a5e2cea93e3c420809a0/packages/playwright-test/src/types.ts#L30

@@ -42,0 +25,0 @@ interface TestStepInternal {

@@ -1,3 +0,3 @@

import type { FullConfig, TestError } from '@playwright/test';
import type { Reporter, Suite, TestCase, TestResult } from '@playwright/test/reporter';
import type { FullConfig } from '@playwright/test';
import type { Reporter, Suite, TestCase, TestError, TestResult } from '@playwright/test/reporter';
import { ClassDescription, LogicError, Serenity, serenity as reporterSerenityInstance, StageCrewMember, StageCrewMemberBuilder, Timestamp } from '@serenity-js/core';

@@ -4,0 +4,0 @@ import { OutputStream } from '@serenity-js/core/lib/adapter';

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

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