works.iterative.testing.e2e

Members list

Type members

Classlikes

abstract class BasePageObject(val baseUrl: String, path: String) extends PageObject

Attributes

Supertypes
trait PageObject
class Object
trait Matchable
class Any

Common step definitions for Playwright E2E tests.

Common step definitions for Playwright E2E tests.

Mix this trait into your step definition classes to get pre-built steps.

Example usage:

class MyStepDefinitions extends PlaywrightCucumberRunner with CommonStepDefinitions:
// Your custom step definitions...

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object CucumberLifecycleHooks extends ScalaDsl, EN, CS

Singleton object that contains the lifecycle hooks for Cucumber tests. This must be an object (not a class) because Cucumber requires static hooks to be defined in a static context.

Singleton object that contains the lifecycle hooks for Cucumber tests. This must be an object (not a class) because Cucumber requires static hooks to be defined in a static context.

Attributes

Supertypes
trait CS
trait EN
trait ScalaDsl
class Object
trait Matchable
class Any
Show all
Self type
case class E2ETestConfig(baseUrl: String, headless: Boolean = ..., slowMo: Option[Double] = ..., timeout: Option[Int] = ..., viewport: Option[ViewportConfig] = ..., recordVideo: Option[String] = ..., screenshot: Option[ScreenshotConfig] = ..., locale: Option[String] = ..., channel: Option[String] = ...)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait PageObject

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait PlaywrightCucumberRunner extends ScalaDsl, EN, CS

Base trait for Cucumber test runners using Playwright.

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

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class ScreenshotConfig(path: String, fullPage: Boolean = ...)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
case class ViewportConfig(width: Int, height: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all