@shopware-ag/acceptance-test-suite 3.8.3 → 3.9.0
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.
- package/README.md +2 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,6 +73,8 @@ For more information about how to configure your Playwright project, have a look
|
|
|
73
73
|
## Usage
|
|
74
74
|
The test suite uses the [extension system](https://playwright.dev/docs/extensibility) of Playwright and can be used as a full drop-in for Playwright. But, as you might also want to add your own extensions, the best way to use it is to create your own base test file and use it as the central reference for your test files. Add it to your project root or a specific fixture directory and name it whatever you like.
|
|
75
75
|
|
|
76
|
+
Make sure to set `"type": "module",` in your `package.json`.
|
|
77
|
+
|
|
76
78
|
```TypeScript
|
|
77
79
|
// BaseTestFile.ts
|
|
78
80
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as axe_core from 'axe-core';
|
|
2
2
|
import * as _playwright_test from '@playwright/test';
|
|
3
|
-
import { APIRequestContext, APIResponse, Page, Locator } from '@playwright/test';
|
|
3
|
+
import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from '@playwright/test';
|
|
4
4
|
export * from '@playwright/test';
|
|
5
5
|
import * as playwright_core from 'playwright-core';
|
|
6
6
|
import { components } from '@shopware/api-client/admin-api-types';
|
|
@@ -135,6 +135,8 @@ interface ApiContextTypes {
|
|
|
135
135
|
interface PageContextTypes {
|
|
136
136
|
AdminPage: Page;
|
|
137
137
|
StorefrontPage: Page;
|
|
138
|
+
page: Page;
|
|
139
|
+
context: BrowserContext;
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
declare class Actor {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as axe_core from 'axe-core';
|
|
2
2
|
import * as _playwright_test from '@playwright/test';
|
|
3
|
-
import { APIRequestContext, APIResponse, Page, Locator } from '@playwright/test';
|
|
3
|
+
import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from '@playwright/test';
|
|
4
4
|
export * from '@playwright/test';
|
|
5
5
|
import * as playwright_core from 'playwright-core';
|
|
6
6
|
import { components } from '@shopware/api-client/admin-api-types';
|
|
@@ -135,6 +135,8 @@ interface ApiContextTypes {
|
|
|
135
135
|
interface PageContextTypes {
|
|
136
136
|
AdminPage: Page;
|
|
137
137
|
StorefrontPage: Page;
|
|
138
|
+
page: Page;
|
|
139
|
+
context: BrowserContext;
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
declare class Actor {
|
package/dist/index.mjs
CHANGED
|
@@ -857,6 +857,12 @@ const test$a = test$e.extend({
|
|
|
857
857
|
await use(page);
|
|
858
858
|
await page.close();
|
|
859
859
|
await context.close();
|
|
860
|
+
},
|
|
861
|
+
page: async ({ AdminPage }, use) => {
|
|
862
|
+
await use(AdminPage);
|
|
863
|
+
},
|
|
864
|
+
context: async ({ AdminPage }, use) => {
|
|
865
|
+
await use(AdminPage.context());
|
|
860
866
|
}
|
|
861
867
|
});
|
|
862
868
|
|
|
@@ -2884,7 +2890,7 @@ class AccountOrder {
|
|
|
2884
2890
|
__publicField$e(this, "cartLineItemImages");
|
|
2885
2891
|
__publicField$e(this, "orderExpandButton");
|
|
2886
2892
|
__publicField$e(this, "digitalProductDownloadButton");
|
|
2887
|
-
this.orderExpandButton = page.getByRole("button", { name:
|
|
2893
|
+
this.orderExpandButton = page.getByRole("button", { name: /Expand|Show details/ }).first();
|
|
2888
2894
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2889
2895
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
2890
2896
|
}
|