@cepharum/contextual-gherkin 3.0.0-beta.2 → 3.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +6 -6
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -28,7 +28,7 @@ declare module "@cepharum/contextual-gherkin" {
28
28
  * Implements singleton API instance for interacting with contextual-gherkin
29
29
  * in current runtime.
30
30
  */
31
- class Api<B = BrowserAdapter, A = Expect, C = AbstractContext> {
31
+ class Api<B = BrowserAdapter, A = Assertions, C = AbstractContext> {
32
32
  /**
33
33
  * Creates singleton instance of contextual-gherkin API in current
34
34
  * runtime on first invocation or augments configuration of existing
@@ -43,7 +43,7 @@ declare module "@cepharum/contextual-gherkin" {
43
43
  * Provides singleton instance of current runtime's contextual-gherkin
44
44
  * API for interacting with content of one or more browser views.
45
45
  */
46
- static access(): Api;
46
+ static access<BA = BrowserAdapter, AS = Assertions, AC = AbstractContext>(): Api<BA, AS, AC>;
47
47
 
48
48
  /**
49
49
  * Exposes normalized configuration of contextual-gherkin.
@@ -226,7 +226,7 @@ declare module "@cepharum/contextual-gherkin" {
226
226
  * Describes interface for interacting with a framework actually controlling
227
227
  * browsers, inspecting documents and performing actions on its content.
228
228
  */
229
- abstract class BrowserAdapter<A = Expect, C = AbstractContext> {
229
+ abstract class BrowserAdapter<A = Assertions, C = AbstractContext> {
230
230
  /**
231
231
  * Creates (another) view for presenting documents, querying and
232
232
  * interacting with their elements.
@@ -260,11 +260,11 @@ declare module "@cepharum/contextual-gherkin" {
260
260
  /**
261
261
  * Implements adapter for using contextual-gherkin with Playwright.
262
262
  */
263
- class PlaywrightAdapter extends BrowserAdapter<Expect, PlaywrightContext> {
263
+ class PlaywrightAdapter extends BrowserAdapter<Assertions, PlaywrightContext> {
264
264
  constructor( browser: PlaywrightBrowser, contextOptions?: PlaywrightBrowserContextOptions );
265
265
 
266
266
  /** @inheritDoc */
267
- async createView( api: Api<PlaywrightAdapter, Expect, PlaywrightContext>, shareSessionWith: PlaywrightContext = undefined ): Promise<PlaywrightContext>;
267
+ async createView( api: Api<PlaywrightAdapter, Assertions, PlaywrightContext>, shareSessionWith: PlaywrightContext = undefined ): Promise<PlaywrightContext>;
268
268
  }
269
269
 
270
270
  /**
@@ -516,7 +516,7 @@ declare module "@cepharum/contextual-gherkin" {
516
516
  * Contexts can be tracked and recovered to implement follow-up queries and
517
517
  * actions.
518
518
  */
519
- abstract class AbstractContext<C = ABstractContext> {
519
+ abstract class AbstractContext<C = AbstractContext> {
520
520
  /**
521
521
  * @param framework names the framework this context is working with
522
522
  * @param source context this instance is starting as a duplicate of
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cepharum/contextual-gherkin",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.3",
4
4
  "description": "flexible step definitions for Gherkin",
5
5
  "author": "cepharum GmbH <thomas.urban@cepharum.de>",
6
6
  "homepage": "https://cepharum-foss.gitlab.io/contextual-gherkin/",