@appsemble/e2e 0.36.3-test.5 → 0.36.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.
- package/README.md +3 -3
- package/package.json +5 -5
- package/tests/demo-apps/holidays.spec.js +8 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#  Appsemble End 2 End Tests
|
|
2
2
|
|
|
3
3
|
> Run end 2 end tests on an Appsemble environment and provide Appsemble fixtures
|
|
4
4
|
|
|
5
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.36.3)
|
|
6
6
|
[](https://prettier.io)
|
|
7
7
|
|
|
8
8
|
## Table of Contents
|
|
@@ -102,5 +102,5 @@ When writing end-to-end tests, have a look at the
|
|
|
102
102
|
|
|
103
103
|
## License
|
|
104
104
|
|
|
105
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.3
|
|
105
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.3/LICENSE.md) ©
|
|
106
106
|
[Appsemble](https://appsemble.com)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/e2e",
|
|
3
|
-
"version": "0.36.3
|
|
3
|
+
"version": "0.36.3",
|
|
4
4
|
"description": "End-to-end tests used for testing Appsemble apps in an existing environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"test": "vitest"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@appsemble/lang-sdk": "0.36.3
|
|
42
|
-
"@appsemble/node-utils": "0.36.3
|
|
43
|
-
"@appsemble/types": "0.36.3
|
|
44
|
-
"@playwright/test": "1.
|
|
41
|
+
"@appsemble/lang-sdk": "0.36.3",
|
|
42
|
+
"@appsemble/node-utils": "0.36.3",
|
|
43
|
+
"@appsemble/types": "0.36.3",
|
|
44
|
+
"@playwright/test": "1.58.2",
|
|
45
45
|
"strip-indent": "^4.0.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
@@ -27,11 +27,17 @@ test.describe('Holidays', () => {
|
|
|
27
27
|
});
|
|
28
28
|
test('should navigate to the second tab', async ({ page }) => {
|
|
29
29
|
await page.click('text=Germany');
|
|
30
|
-
await expect(page.getByText('Mariä Himmelfahrt')).toBeVisible();
|
|
30
|
+
await expect(page.getByText('Mariä Himmelfahrt')).toBeVisible({ timeout: 7000 });
|
|
31
31
|
});
|
|
32
32
|
test('should navigate to the American holidays page', async ({ page }) => {
|
|
33
|
+
const modal = page.getByRole('dialog', { name: 'ServiceWorkerError' });
|
|
34
|
+
if (await modal.isVisible()) {
|
|
35
|
+
await modal.getByRole('button').click();
|
|
36
|
+
}
|
|
33
37
|
await page.click('text=Holidays in America');
|
|
34
|
-
await expect(page.getByText('Independence Day')).toBeVisible(
|
|
38
|
+
await expect(page.getByText('Independence Day', { exact: true })).toBeVisible({
|
|
39
|
+
timeout: 8000,
|
|
40
|
+
});
|
|
35
41
|
});
|
|
36
42
|
});
|
|
37
43
|
//# sourceMappingURL=holidays.spec.js.map
|