Fix trackInApp* functions returning 400 by restoring email in requests #575
Annotations
10 errors, 18 warnings, and 1 notice
|
Run Playwright tests:
react-example/e2e/page-objects/pages/InAppPage.ts#L48
3) [webkit] › e2e/inapp-e2e.spec.ts:64:7 › In-App Messaging - E2E (Real API) › should display in-app message in iframe when messages are available
Error: expect(locator).toContainText(expected) failed
Locator: locator('[data-qa-auto-display-messages]')
Expected pattern: /Retrieved \d+ messages/
Received string: "Get Messages (auto-display)"
Timeout: 5000ms
Call log:
- Expect "toContainText" with timeout 5000ms
- waiting for locator('[data-qa-auto-display-messages]')
4 × locator resolved to <button aria-disabled="true" data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 Button__DisabledButton-sc-1dedu0o-1 jNqjFi hucRDx InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
5 × locator resolved to <button data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 jNqjFi InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
at page-objects/pages/InAppPage.ts:48
46 |
47 | // Wait for button text to update from "Get Messages" to "Retrieved X messages"
> 48 | await expect(this.autoDisplayButton).toContainText(
| ^
49 | /Retrieved \d+ messages/
50 | );
51 |
at InAppPage.performFetchMessagesAutoDisplayFlow (/__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/page-objects/pages/InAppPage.ts:48:42)
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/inapp-e2e.spec.ts:67:26
|
|
Run Playwright tests:
react-example/e2e/inapp-e2e.spec.ts#L37
2) [webkit] › e2e/inapp-e2e.spec.ts:34:7 › In-App Messaging - E2E (Real API) › should fetch in-app messages from Iterable API and display count
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForResponse: Test ended.
35 | page
36 | }) => {
> 37 | const apiResponsePromise = page.waitForResponse(
| ^
38 | (response) =>
39 | response.url().includes('/api/inApp/web/getMessages') &&
40 | response.status() === 200,
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/inapp-e2e.spec.ts:37:37
|
|
Run Playwright tests:
react-example/e2e/page-objects/pages/InAppPage.ts#L48
2) [webkit] › e2e/inapp-e2e.spec.ts:34:7 › In-App Messaging - E2E (Real API) › should fetch in-app messages from Iterable API and display count
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toContainText(expected) failed
Locator: locator('[data-qa-auto-display-messages]')
Expected pattern: /Retrieved \d+ messages/
Received string: "Get Messages (auto-display)"
Timeout: 5000ms
Call log:
- Expect "toContainText" with timeout 5000ms
- waiting for locator('[data-qa-auto-display-messages]')
4 × locator resolved to <button aria-disabled="true" data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 Button__DisabledButton-sc-1dedu0o-1 jNqjFi hucRDx InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
5 × locator resolved to <button data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 jNqjFi InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
at page-objects/pages/InAppPage.ts:48
46 |
47 | // Wait for button text to update from "Get Messages" to "Retrieved X messages"
> 48 | await expect(this.autoDisplayButton).toContainText(
| ^
49 | /Retrieved \d+ messages/
50 | );
51 |
at InAppPage.performFetchMessagesAutoDisplayFlow (/__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/page-objects/pages/InAppPage.ts:48:42)
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/inapp-e2e.spec.ts:44:26
|
|
Run Playwright tests:
react-example/e2e/inapp-e2e.spec.ts#L37
2) [webkit] › e2e/inapp-e2e.spec.ts:34:7 › In-App Messaging - E2E (Real API) › should fetch in-app messages from Iterable API and display count
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForResponse: Test ended.
35 | page
36 | }) => {
> 37 | const apiResponsePromise = page.waitForResponse(
| ^
38 | (response) =>
39 | response.url().includes('/api/inApp/web/getMessages') &&
40 | response.status() === 200,
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/inapp-e2e.spec.ts:37:37
|
|
Run Playwright tests:
react-example/e2e/page-objects/pages/InAppPage.ts#L48
2) [webkit] › e2e/inapp-e2e.spec.ts:34:7 › In-App Messaging - E2E (Real API) › should fetch in-app messages from Iterable API and display count
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toContainText(expected) failed
Locator: locator('[data-qa-auto-display-messages]')
Expected pattern: /Retrieved \d+ messages/
Received string: "Get Messages (auto-display)"
Timeout: 5000ms
Call log:
- Expect "toContainText" with timeout 5000ms
- waiting for locator('[data-qa-auto-display-messages]')
4 × locator resolved to <button aria-disabled="true" data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 Button__DisabledButton-sc-1dedu0o-1 jNqjFi hucRDx InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
5 × locator resolved to <button data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 jNqjFi InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
at page-objects/pages/InAppPage.ts:48
46 |
47 | // Wait for button text to update from "Get Messages" to "Retrieved X messages"
> 48 | await expect(this.autoDisplayButton).toContainText(
| ^
49 | /Retrieved \d+ messages/
50 | );
51 |
at InAppPage.performFetchMessagesAutoDisplayFlow (/__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/page-objects/pages/InAppPage.ts:48:42)
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/inapp-e2e.spec.ts:44:26
|
|
Run Playwright tests:
react-example/e2e/inapp-e2e.spec.ts#L37
2) [webkit] › e2e/inapp-e2e.spec.ts:34:7 › In-App Messaging - E2E (Real API) › should fetch in-app messages from Iterable API and display count
Error: page.waitForResponse: Test ended.
35 | page
36 | }) => {
> 37 | const apiResponsePromise = page.waitForResponse(
| ^
38 | (response) =>
39 | response.url().includes('/api/inApp/web/getMessages') &&
40 | response.status() === 200,
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/inapp-e2e.spec.ts:37:37
|
|
Run Playwright tests:
react-example/e2e/page-objects/pages/InAppPage.ts#L48
2) [webkit] › e2e/inapp-e2e.spec.ts:34:7 › In-App Messaging - E2E (Real API) › should fetch in-app messages from Iterable API and display count
Error: expect(locator).toContainText(expected) failed
Locator: locator('[data-qa-auto-display-messages]')
Expected pattern: /Retrieved \d+ messages/
Received string: "Get Messages (auto-display)"
Timeout: 5000ms
Call log:
- Expect "toContainText" with timeout 5000ms
- waiting for locator('[data-qa-auto-display-messages]')
4 × locator resolved to <button aria-disabled="true" data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 Button__DisabledButton-sc-1dedu0o-1 jNqjFi hucRDx InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
5 × locator resolved to <button data-qa-auto-display-messages="true" class="Button__StyledButton-sc-1dedu0o-0 jNqjFi InApp__StyledButton-sc-owyqx1-0 jHtcaZ">Get Messages (auto-display)</button>
- unexpected value "Get Messages (auto-display)"
at page-objects/pages/InAppPage.ts:48
46 |
47 | // Wait for button text to update from "Get Messages" to "Retrieved X messages"
> 48 | await expect(this.autoDisplayButton).toContainText(
| ^
49 | /Retrieved \d+ messages/
50 | );
51 |
at InAppPage.performFetchMessagesAutoDisplayFlow (/__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/page-objects/pages/InAppPage.ts:48:42)
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/inapp-e2e.spec.ts:44:26
|
|
Run Playwright tests:
react-example/e2e/authentication.spec.ts#L29
1) [webkit] › e2e/authentication.spec.ts:22:7 › SDK Authentication › should authenticate user with SDK setEmail and make API call
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
27 |
28 | // Accept both 200 and 400 responses (400 can occur due to field type mismatches)
> 29 | const apiCallPromise = page.waitForResponse(
| ^
30 | (response) =>
31 | response.url().includes('/api/users/update') &&
32 | (response.status() === 200 || response.status() === 400),
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/authentication.spec.ts:29:33
|
|
Run Playwright tests:
react-example/e2e/authentication.spec.ts#L29
1) [webkit] › e2e/authentication.spec.ts:22:7 › SDK Authentication › should authenticate user with SDK setEmail and make API call
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
27 |
28 | // Accept both 200 and 400 responses (400 can occur due to field type mismatches)
> 29 | const apiCallPromise = page.waitForResponse(
| ^
30 | (response) =>
31 | response.url().includes('/api/users/update') &&
32 | (response.status() === 200 || response.status() === 400),
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/authentication.spec.ts:29:33
|
|
Run Playwright tests:
react-example/e2e/authentication.spec.ts#L29
1) [webkit] › e2e/authentication.spec.ts:22:7 › SDK Authentication › should authenticate user with SDK setEmail and make API call
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
27 |
28 | // Accept both 200 and 400 responses (400 can occur due to field type mismatches)
> 29 | const apiCallPromise = page.waitForResponse(
| ^
30 | (response) =>
31 | response.url().includes('/api/users/update') &&
32 | (response.status() === 200 || response.status() === 400),
at /__w/iterable-web-sdk/iterable-web-sdk/react-example/e2e/authentication.spec.ts:29:33
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Build React example app:
react-example/src/views/Users.tsx#L52
Unexpected any. Specify a different type
|
|
Build React example app:
react-example/src/views/Users.tsx#L48
Unexpected any. Specify a different type
|
|
Build React example app:
react-example/src/views/Commerce.tsx#L61
Unexpected any. Specify a different type
|
|
Build React example app:
react-example/src/views/Commerce.tsx#L57
Unexpected any. Specify a different type
|
|
Build React example app:
react-example/src/views/Commerce.tsx#L39
Unexpected any. Specify a different type
|
|
Build React example app:
react-example/src/views/Commerce.tsx#L35
Unexpected any. Specify a different type
|
|
Install dependencies:
src/embedded/embeddedManager.ts#L76
Unexpected any. Specify a different type
|
|
Install dependencies:
src/embedded/embeddedManager.ts#L63
Unexpected any. Specify a different type
|
|
Install dependencies:
src/embedded/embeddedManager.ts#L39
Unexpected any. Specify a different type
|
|
Install dependencies:
src/commerce/types.ts#L33
Unexpected any. Specify a different type
|
|
Install dependencies:
src/commerce/types.ts#L15
Unexpected any. Specify a different type
|
|
Install dependencies:
src/commerce/types.ts#L11
Unexpected any. Specify a different type
|
|
Install dependencies:
src/commerce/commerce.ts#L42
Unexpected any. Specify a different type
|
|
Install dependencies:
src/commerce/commerce.ts#L41
Unexpected any. Specify a different type
|
|
Install dependencies:
src/commerce/commerce.ts#L14
Unexpected any. Specify a different type
|
|
Install dependencies:
src/commerce/commerce.ts#L13
Unexpected any. Specify a different type
|
|
Setup Node.js
Failed to restore: Cache service responded with 400
|
|
Run Playwright tests
8 failed
[webkit] › e2e/authentication.spec.ts:22:7 › SDK Authentication › should authenticate user with SDK setEmail and make API call
[webkit] › e2e/inapp-e2e.spec.ts:34:7 › In-App Messaging - E2E (Real API) › should fetch in-app messages from Iterable API and display count
[webkit] › e2e/inapp-e2e.spec.ts:64:7 › In-App Messaging - E2E (Real API) › should display in-app message in iframe when messages are available
[webkit] › e2e/inapp-e2e.spec.ts:88:7 › In-App Messaging - E2E (Real API) › should close in-app message when close button is clicked
[webkit] › e2e/inapp-e2e.spec.ts:113:7 › In-App Messaging - E2E (Real API) › should fetch messages without auto-display and return JSON
[webkit] › e2e/inapp-e2e.spec.ts:140:7 › In-App Messaging - E2E (Real API) › should pause and resume message stream
[webkit] › e2e/inapp-e2e.spec.ts:172:7 › In-App Messaging - E2E (Real API) › should handle multiple fetch attempts correctly
[webkit] › e2e/inapp-e2e.spec.ts:202:7 › In-App Messaging - E2E (Real API) › should include user email in API request
16 passed (1.9m)
|
Loading