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.4.2 to 3.5.0

11

CHANGELOG.md

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

# [3.5.0](https://github.com/serenity-js/serenity-js/compare/v3.4.2...v3.5.0) (2023-07-02)
### Bug Fixes
* **core:** code clean-up: use type-only TypeScript imports where possible ([aa49150](https://github.com/serenity-js/serenity-js/commit/aa49150ca7f367363bb6fcc5e054da8bd820825e))
## [3.4.2](https://github.com/serenity-js/serenity-js/compare/v3.4.1...v3.4.2) (2023-06-30)

@@ -8,0 +19,0 @@

5

lib/api/PerformActivitiesAsPlaywrightSteps.d.ts
import type { test as base } from '@playwright/test';
import { Activity, PerformActivities, PerformsActivities } from '@serenity-js/core';
import { EmitsDomainEvents } from '@serenity-js/core/lib/events';
import type { Activity, PerformsActivities } from '@serenity-js/core';
import { PerformActivities } from '@serenity-js/core';
import type { EmitsDomainEvents } from '@serenity-js/core/lib/events';
export declare class PerformActivitiesAsPlaywrightSteps extends PerformActivities {

@@ -5,0 +6,0 @@ private readonly test;

2

lib/api/PlaywrightTestConfig.d.ts
import type { PlaywrightTestConfig as BasePlaywrightTestConfig } from '@playwright/test';
import { SerenityOptions } from './SerenityOptions';
import type { SerenityOptions } from './SerenityOptions';
/**

@@ -4,0 +4,0 @@ * Convenience alias for [PlaywrightTestConfig](https://playwright.dev/docs/test-configuration) object

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

import { Actor, Cast, Serenity } from '@serenity-js/core';
import type { Actor, Cast, Serenity } from '@serenity-js/core';
/**

@@ -3,0 +3,0 @@ * Serenity/JS-specific [Playwright Test fixtures](https://playwright.dev/docs/test-fixtures)

@@ -1,4 +0,4 @@

import { PlaywrightTestOptions, PlaywrightWorkerArgs, TestFixture } from '@playwright/test';
import { Cast, ClassDescription, Duration, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
import { PlaywrightOptions } from '@serenity-js/playwright';
import type { PlaywrightTestOptions, PlaywrightWorkerArgs, TestFixture } from '@playwright/test';
import type { Cast, ClassDescription, Duration, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
import type { PlaywrightOptions } from '@serenity-js/playwright';
/**

@@ -5,0 +5,0 @@ * Configuration object accepted by `@serenity-js/playwright-test`.

@@ -1,5 +0,5 @@

import { PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, TestType } from '@playwright/test';
import { SerenityFixtures } from './SerenityFixtures';
import { SerenityOptions } from './SerenityOptions';
import type { PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, TestType } from '@playwright/test';
import type { SerenityFixtures } from './SerenityFixtures';
import type { SerenityOptions } from './SerenityOptions';
export type SerenityTestType = TestType<PlaywrightTestArgs & PlaywrightTestOptions & Omit<SerenityOptions, 'actors'> & SerenityFixtures, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
//# sourceMappingURL=SerenityTestType.d.ts.map

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

import { SerenityTestType } from './SerenityTestType';
import type { SerenityTestType } from './SerenityTestType';
/**

@@ -3,0 +3,0 @@ * Declares a single test scenario.

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

import { Stage, StageCrewMember } from '@serenity-js/core';
import { DomainEvent } from '@serenity-js/core/lib/events';
import type { Stage, StageCrewMember } from '@serenity-js/core';
import type { DomainEvent } from '@serenity-js/core/lib/events';
export declare class DomainEventBuffer implements StageCrewMember {

@@ -4,0 +4,0 @@ private stage?;

@@ -1,4 +0,4 @@

import { TestInfo } from '@playwright/test';
import { Stage, StageCrewMember } from '@serenity-js/core';
import { DomainEvent } from '@serenity-js/core/lib/events';
import type { TestInfo } from '@playwright/test';
import type { Stage, StageCrewMember } from '@serenity-js/core';
import type { DomainEvent } from '@serenity-js/core/lib/events';
export declare class PlaywrightStepReporter implements StageCrewMember {

@@ -5,0 +5,0 @@ private readonly testInfo;

import type { FullConfig } from '@playwright/test';
import type { Reporter, Suite, TestCase, TestResult } from '@playwright/test/reporter';
import { ClassDescription, Serenity, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
import { OutputStream } from '@serenity-js/core/lib/adapter';
import type { ClassDescription, Serenity, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
import type { OutputStream } from '@serenity-js/core/lib/adapter';
/**

@@ -6,0 +6,0 @@ * Configuration object accepted by `@serenity-js/playwright-test` reporter.

{
"name": "@serenity-js/playwright-test",
"version": "3.4.2",
"version": "3.5.0",
"description": "Serenity/JS reporter and test APIs for Playwright Test",

@@ -48,5 +48,5 @@ "author": {

"@playwright/test": "^1.35.1",
"@serenity-js/core": "3.4.2",
"@serenity-js/playwright": "3.4.2",
"@serenity-js/web": "3.4.2",
"@serenity-js/core": "3.5.0",
"@serenity-js/playwright": "3.5.0",
"@serenity-js/web": "3.5.0",
"deepmerge": "^4.3.1",

@@ -63,5 +63,5 @@ "tiny-types": "^1.19.1"

"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"typescript": "^5.1.6"
},
"gitHead": "cfa92797638b21f0fde4f2cc836b57f849fee671"
"gitHead": "c34ec9a491ded36cc178f219a9b3cae058c34c2b"
}
import type { test as base } from '@playwright/test';
import { Activity, d, Interaction, PerformActivities, PerformsActivities } from '@serenity-js/core';
import { EmitsDomainEvents } from '@serenity-js/core/lib/events';
import type { Activity, PerformsActivities } from '@serenity-js/core';
import { d, Interaction, PerformActivities } from '@serenity-js/core';
import type { EmitsDomainEvents } from '@serenity-js/core/lib/events';
import { significantFieldsOf } from 'tiny-types/lib/objects';

@@ -5,0 +6,0 @@

import type { PlaywrightTestConfig as BasePlaywrightTestConfig } from '@playwright/test';
import { SerenityOptions } from './SerenityOptions';
import type { SerenityOptions } from './SerenityOptions';

@@ -5,0 +5,0 @@ /**

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

import { Actor, Cast, Serenity } from '@serenity-js/core';
import type { Actor, Cast, Serenity } from '@serenity-js/core';

@@ -3,0 +3,0 @@ /**

@@ -1,4 +0,4 @@

import { PlaywrightTestOptions, PlaywrightWorkerArgs, TestFixture } from '@playwright/test';
import { Cast, ClassDescription, Duration, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
import { PlaywrightOptions } from '@serenity-js/playwright';
import type { PlaywrightTestOptions, PlaywrightWorkerArgs, TestFixture } from '@playwright/test';
import type { Cast, ClassDescription, Duration, StageCrewMember, StageCrewMemberBuilder } from '@serenity-js/core';
import type { PlaywrightOptions } from '@serenity-js/playwright';

@@ -5,0 +5,0 @@ /**

@@ -1,5 +0,5 @@

import { PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, TestType } from '@playwright/test';
import type { PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, TestType } from '@playwright/test';
import { SerenityFixtures } from './SerenityFixtures';
import { SerenityOptions } from './SerenityOptions';
import type { SerenityFixtures } from './SerenityFixtures';
import type { SerenityOptions } from './SerenityOptions';

@@ -6,0 +6,0 @@ /* eslint-disable @typescript-eslint/indent */

@@ -1,15 +0,18 @@

import { test as base, TestInfo } from '@playwright/test';
import type { TestInfo } from '@playwright/test';
import { test as base } from '@playwright/test';
import { AnsiDiffFormatter, Cast, Duration, serenity as serenityInstance, TakeNotes } from '@serenity-js/core';
import { SceneFinishes, SceneTagged } from '@serenity-js/core/lib/events';
import { BrowserTag, PlatformTag } from '@serenity-js/core/lib/model';
import { BrowseTheWebWithPlaywright, PlaywrightPage } from '@serenity-js/playwright';
import type { PlaywrightPage } from '@serenity-js/playwright';
import { BrowseTheWebWithPlaywright } from '@serenity-js/playwright';
import { Photographer, TakePhotosOfFailures } from '@serenity-js/web';
import * as os from 'os';
import { ensure, isFunction, JSONValue, property } from 'tiny-types';
import type { JSONValue} from 'tiny-types';
import { ensure, isFunction, property } from 'tiny-types';
import { DomainEventBuffer, PlaywrightStepReporter, SERENITY_JS_DOMAIN_EVENTS_ATTACHMENT_CONTENT_TYPE } from '../reporter';
import { PerformActivitiesAsPlaywrightSteps } from './PerformActivitiesAsPlaywrightSteps';
import { SerenityFixtures } from './SerenityFixtures';
import { SerenityOptions } from './SerenityOptions';
import { SerenityTestType } from './SerenityTestType';
import type { SerenityFixtures } from './SerenityFixtures';
import type { SerenityOptions } from './SerenityOptions';
import type { SerenityTestType } from './SerenityTestType';

@@ -16,0 +19,0 @@ /**

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

import { Stage, StageCrewMember } from '@serenity-js/core';
import { DomainEvent } from '@serenity-js/core/lib/events';
import type { Stage, StageCrewMember } from '@serenity-js/core';
import type { DomainEvent } from '@serenity-js/core/lib/events';

@@ -4,0 +4,0 @@ export class DomainEventBuffer implements StageCrewMember {

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

import { TestInfo } from '@playwright/test';
import { Stage, StageCrewMember } from '@serenity-js/core';
import type { TestInfo } from '@playwright/test';
import type { Stage, StageCrewMember } from '@serenity-js/core';
import type {
DomainEvent} from '@serenity-js/core/lib/events';
import {

@@ -7,7 +9,6 @@ ActivityRelatedArtifactGenerated,

AsyncOperationCompleted,
DomainEvent,
SceneTagged,
} from '@serenity-js/core/lib/events';
import { BrowserTag, CorrelationId, Description, Name, Photo, PlatformTag } from '@serenity-js/core/lib/model';
import { Tag } from '@serenity-js/core/src/model';
import type { Tag } from '@serenity-js/core/src/model';

@@ -14,0 +15,0 @@ export class PlaywrightStepReporter implements StageCrewMember {

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

@@ -12,6 +10,11 @@ StageCrewMemberBuilder,

} from '@serenity-js/core';
import { OutputStream } from '@serenity-js/core/lib/adapter';
import {
LogicError,
serenity as reporterSerenityInstance
} from '@serenity-js/core';
import type { OutputStream } from '@serenity-js/core/lib/adapter';
import type {
DomainEvent} from '@serenity-js/core/lib/events';
import * as events from '@serenity-js/core/lib/events';
import {
DomainEvent,
InteractionFinished,

@@ -28,6 +31,8 @@ RetryableSceneDetected,

import { FileSystemLocation, Path } from '@serenity-js/core/lib/io';
import type {
CorrelationId,
Outcome} from '@serenity-js/core/lib/model';
import {
ArbitraryTag,
Category,
CorrelationId,
ExecutionFailedWithAssertionError,

@@ -41,3 +46,2 @@ ExecutionFailedWithError,

Name,
Outcome,
ScenarioDetails,

@@ -44,0 +48,0 @@ } from '@serenity-js/core/lib/model';

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

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

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