@appsemble/e2e 0.36.4 → 0.36.5-test.1

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 CHANGED
@@ -1,8 +1,8 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.36.4/config/assets/logo.svg) Appsemble End 2 End Tests
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.36.5-test.1/config/assets/logo.svg) 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
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.36.4/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.36.4)
5
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.36.5-test.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.36.5-test.1)
6
6
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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.4/LICENSE.md) ©
105
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.5-test.1/LICENSE.md) ©
106
106
  [Appsemble](https://appsemble.com)
@@ -12,7 +12,7 @@ export const test = base.extend({
12
12
  const url = await (typeof appIdentifier === 'number'
13
13
  ? getLiveAppURL(appIdentifier)
14
14
  : getLiveAppURL(await getAppId(appIdentifier, request)));
15
- await page.goto(url);
15
+ await page.goto(url, { timeout: 60000 });
16
16
  return url;
17
17
  });
18
18
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/e2e",
3
- "version": "0.36.4",
3
+ "version": "0.36.5-test.1",
4
4
  "description": "End-to-end tests used for testing Appsemble apps in an existing environment.",
5
5
  "keywords": [
6
6
  "app",
@@ -38,9 +38,9 @@
38
38
  "test": "vitest"
39
39
  },
40
40
  "dependencies": {
41
- "@appsemble/lang-sdk": "0.36.4",
42
- "@appsemble/node-utils": "0.36.4",
43
- "@appsemble/types": "0.36.4",
41
+ "@appsemble/lang-sdk": "0.36.5-test.1",
42
+ "@appsemble/node-utils": "0.36.5-test.1",
43
+ "@appsemble/types": "0.36.5-test.1",
44
44
  "@playwright/test": "1.58.2",
45
45
  "strip-indent": "^4.0.0"
46
46
  },
@@ -17,6 +17,8 @@ export default defineConfig({
17
17
  reporter: [['junit', { outputFile: 'results.xml' }]],
18
18
  // Prevent the pipeline from timing out
19
19
  maxFailures: 6,
20
+ // Overall test timeout - increased for CI stability with cold server starts
21
+ timeout: 60000,
20
22
  // Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions.
21
23
  use: {
22
24
  // Base URL to use in actions like `await page.goto('/')`.
@@ -29,6 +31,8 @@ export default defineConfig({
29
31
  // Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer
30
32
  trace: 'on-first-retry',
31
33
  video: 'on',
34
+ // Navigation timeout for page.goto() - increased for CI stability
35
+ navigationTimeout: 60000,
32
36
  },
33
37
  // Configure projects for major browsers
34
38
  projects: [
@@ -42,7 +42,9 @@ test.describe('Individual app', () => {
42
42
  await codeEditor.getByText('name: test app').press('End');
43
43
  await codeEditor.getByText('name: test app').press('Backspace');
44
44
  await codeEditor.getByText('name: test ap').press('p');
45
+ const responsePromise = page.waitForResponse((response) => response.url().includes('/api/apps/') && response.request().method() === 'PATCH');
45
46
  await page.getByRole('button', { name: 'Publish' }).click();
47
+ await responsePromise;
46
48
  await expect(page.getByText('Successfully updated app definition')).toBeVisible();
47
49
  await page.getByRole('link', { name: 'Details' }).click();
48
50
  await expect(page.getByText('Clone App')).toBeVisible();