PlaywrightCucumberRunner

works.iterative.testing.e2e.PlaywrightCucumberRunner
trait PlaywrightCucumberRunner extends ScalaDsl, EN, CS

Base trait for Cucumber test runners using Playwright.

This trait provides access to Playwright page objects and test data. The lifecycle hooks (BeforeAll, AfterAll, After) are defined in the CucumberLifecycleHooks object to satisfy Cucumber's requirement for static hooks to be in a static context.

Attributes

Graph
Supertypes
trait CS
trait EN
trait ScalaDsl
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

final class DataTableTypeBody(replaceWithEmptyString: Seq[String])

Attributes

Inherited from:
DataTableTypeDsl (hidden)
Supertypes
class Object
trait Matchable
class Any
final class HookBody(hookType: ScopedHookType, tagExpression: String, order: Int, frame: StackTraceElement)

Attributes

Inherited from:
HookDsl (hidden)
Supertypes
class Object
trait Matchable
class Any
final class ParameterTypeBody(name: String, regex: String)

Attributes

Inherited from:
ParameterTypeDsl (hidden)
Supertypes
class Object
trait Matchable
class Any
final class StaticHookBody(hookType: StaticHookType, order: Int, frame: StackTraceElement)

Attributes

Inherited from:
HookDsl (hidden)
Supertypes
class Object
trait Matchable
class Any
final class Step(name: String)

Attributes

Inherited from:
StepDsl (hidden)
Supertypes
class Object
trait Matchable
class Any
final class StepBody(name: String, regex: String)

Attributes

Inherited from:
StepDsl (hidden)
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

protected def baseUrl: String
protected def config: E2ETestConfig
protected def freshPage(): Page
protected def page: Page
protected def testData: TestDataStore

Inherited methods

def After(tagExpression: String, order: Int): HookBody

Defines and after hook.

Defines and after hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)
def After(order: Int): HookBody

Defines and after hook.

Defines and after hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

Attributes

Inherited from:
HookDsl (hidden)
def After(tagExpression: String): HookBody

Defines and after hook.

Defines and after hook.

Value parameters

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)

Defines and after hook.

Defines and after hook.

Attributes

Inherited from:
HookDsl (hidden)
def AfterAll(order: Int): StaticHookBody

Defines a after all hook.

Defines a after all hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

Attributes

Inherited from:
HookDsl (hidden)

Defines a after all hook.

Defines a after all hook.

Attributes

Inherited from:
HookDsl (hidden)
def AfterStep(tagExpression: String, order: Int): HookBody

Defines and after step hook.

Defines and after step hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)
def AfterStep(order: Int): HookBody

Defines and after step hook.

Defines and after step hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

Attributes

Inherited from:
HookDsl (hidden)
def AfterStep(tagExpression: String): HookBody

Defines and after step hook.

Defines and after step hook.

Value parameters

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)

Defines and after step hook.

Defines and after step hook.

Attributes

Inherited from:
HookDsl (hidden)
def Before(tagExpression: String, order: Int): HookBody

Defines an before hook.

Defines an before hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)
def Before(order: Int): HookBody

Defines an before hook.

Defines an before hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

Attributes

Inherited from:
HookDsl (hidden)
def Before(tagExpression: String): HookBody

Defines an before hook.

Defines an before hook.

Value parameters

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)

Defines an before hook.

Defines an before hook.

Attributes

Inherited from:
HookDsl (hidden)
def BeforeAll(order: Int): StaticHookBody

Defines a before all hook.

Defines a before all hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

Attributes

Inherited from:
HookDsl (hidden)

Defines a before all hook.

Defines a before all hook.

Attributes

Inherited from:
HookDsl (hidden)
def BeforeStep(tagExpression: String, order: Int): HookBody

Defines an before step hook.

Defines an before step hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)
def BeforeStep(order: Int): HookBody

Defines an before step hook.

Defines an before step hook.

Value parameters

order

the order in which this hook should run. Higher numbers are run first

Attributes

Inherited from:
HookDsl (hidden)
def BeforeStep(tagExpression: String): HookBody

Defines an before step hook.

Defines an before step hook.

Value parameters

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Attributes

Inherited from:
HookDsl (hidden)

Defines an before step hook.

Defines an before step hook.

Attributes

Inherited from:
HookDsl (hidden)
def DataTableType(replaceWithEmptyString: String): DataTableTypeBody

Register a data table type with a replacement.

Register a data table type with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

Value parameters

replaceWithEmptyString

a string that will be replaced with an empty string.

Attributes

Inherited from:
DataTableTypeDsl (hidden)

Register a data table type.

Register a data table type.

Attributes

Inherited from:
DataTableTypeDsl (hidden)
def DefaultDataTableCellTransformer(replaceWithEmptyString: String)(body: DefaultDataTableCellTransformerBody): Unit

Register default data table cell transformer with a replacement.

Register default data table cell transformer with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings. *

Value parameters

body

converts String argument to an instance of the Type argument

replaceWithEmptyString

a string that will be replaced with an empty string.

Attributes

Inherited from:
DefaultTransformerDsl (hidden)
def DefaultDataTableCellTransformer(body: DefaultDataTableCellTransformerBody): Unit

Register default data table cell transformer.

Register default data table cell transformer.

Value parameters

body

converts String argument to an instance of the Type argument

Attributes

Inherited from:
DefaultTransformerDsl (hidden)
def DefaultDataTableEntryTransformer(replaceWithEmptyString: String)(body: DefaultDataTableEntryTransformerBody): Unit

Register default data table cell transformer with a replacement.

Register default data table cell transformer with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

Value parameters

body

converts Map[String,String] argument to an instance of the Type argument

replaceWithEmptyString

a string that will be replaced with an empty string.

Attributes

Inherited from:
DefaultTransformerDsl (hidden)
def DefaultDataTableEntryTransformer(body: DefaultDataTableEntryTransformerBody): Unit

Register default data table entry transformer.

Register default data table entry transformer.

Value parameters

body

converts Map[String,String] argument to an instance of the Type argument

Attributes

Inherited from:
DefaultTransformerDsl (hidden)
def DefaultParameterTransformer(body: DefaultParameterTransformerBody): Unit

Register default parameter type transformer.

Register default parameter type transformer.

Value parameters

body

converts String argument to an instance of the Type argument

Attributes

Inherited from:
DefaultTransformerDsl (hidden)
def DocStringType[T](contentType: String)(body: () => T)(implicit ev: Stepable[T]): Unit

Register doc string type.

Register doc string type.

Type parameters

T

type to convert to

Value parameters

body

a function that creates an instance of T from the doc string

contentType

Name of the content type.

Attributes

Inherited from:
DocStringTypeDsl (hidden)
def ParameterType(name: String, regex: String): ParameterTypeBody

Register parameter type.

Register parameter type.

Value parameters

name

used as the type name in typed expressions

regex

expression to match

Attributes

See also
Inherited from:
ParameterTypeDsl (hidden)

Inherited fields

val A: Step

Attributes

Inherited from:
CS
val Ale: Step

Attributes

Inherited from:
CS
val And: Step

Attributes

Inherited from:
EN
val Ataké: Step

Attributes

Inherited from:
CS
val But: Step

Attributes

Inherited from:
EN

Attributes

Inherited from:
BaseScalaDsl (hidden)

Attributes

Inherited from:
BaseScalaDsl (hidden)
val EMPTY_TAG_EXPRESSION: String

Attributes

Inherited from:
BaseScalaDsl (hidden)
val Given: Step

Attributes

Inherited from:
EN
val Když: Step

Attributes

Inherited from:
CS
val NO_REPLACEMENT: Seq[String]

Attributes

Inherited from:
BaseScalaDsl (hidden)
val Pak: Step

Attributes

Inherited from:
CS
val Pokud: Step

Attributes

Inherited from:
CS
val Then: Step

Attributes

Inherited from:
EN
val When: Step

Attributes

Inherited from:
EN

Attributes

Inherited from:
CS