We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ee8fb4 commit 023cc7dCopy full SHA for 023cc7d
3 files changed
testing/e2e/src/pages/__root.page.ts
@@ -0,0 +1,14 @@
1
+import { expect } from '@playwright/test';
2
+import type { Page } from '@playwright/test';
3
+
4
+export abstract class RootPage {
5
+ protected readonly $ref: Page;
6
7
+ constructor(page: Page) {
8
+ this.$ref = page;
9
+ }
10
11
+ get expect() {
12
+ return expect(this.$ref);
13
14
+}
testing/e2e/src/pages/_root.page.ts
testing/e2e/src/pages/setup.page.ts
@@ -1,3 +1,3 @@
-import { RootPage } from './_root.page';
+import { RootPage } from './__root.page';
export class SetupPage extends RootPage {}
0 commit comments