Skip to content

Commit b4b6ad8

Browse files
committed
fix angular tests
1 parent 79a6b74 commit b4b6ad8

File tree

8 files changed

+12
-4
lines changed

8 files changed

+12
-4
lines changed

dev-packages/e2e-tests/test-applications/angular-17/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"devDependencies": {
3232
"@playwright/test": "~1.50.0",
3333
"@sentry-internal/test-utils": "link:../../../test-utils",
34+
"@sentry/core": "latest || *",
3435
"@angular-devkit/build-angular": "^17.1.1",
3536
"@angular/cli": "^17.1.1",
3637
"@angular/compiler-cli": "^17.1.0",

dev-packages/e2e-tests/test-applications/angular-17/tests/performance.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
3+
// Cannot use @sentry/angular here due to build stuff
4+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
45

56
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
67
const transactionPromise = waitForTransaction('angular-17', async transactionEvent => {

dev-packages/e2e-tests/test-applications/angular-18/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"devDependencies": {
3232
"@playwright/test": "~1.50.0",
3333
"@sentry-internal/test-utils": "link:../../../test-utils",
34+
"@sentry/core": "latest || *",
3435
"@angular-devkit/build-angular": "^18.0.0",
3536
"@angular/cli": "^18.0.0",
3637
"@angular/compiler-cli": "^18.0.0",

dev-packages/e2e-tests/test-applications/angular-18/tests/performance.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
3+
// Cannot use @sentry/angular here due to build stuff
4+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
45

56
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
67
const transactionPromise = waitForTransaction('angular-18', async transactionEvent => {

dev-packages/e2e-tests/test-applications/angular-19/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@angular/compiler-cli": "^19.0.0",
3535
"@playwright/test": "~1.50.0",
3636
"@sentry-internal/test-utils": "link:../../../test-utils",
37+
"@sentry/core": "latest || *",
3738
"@types/jasmine": "~5.1.0",
3839
"http-server": "^14.1.1",
3940
"jasmine-core": "~5.4.0",

dev-packages/e2e-tests/test-applications/angular-19/tests/performance.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
3+
// Cannot use @sentry/angular here due to build stuff
4+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
45

56
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
67
const transactionPromise = waitForTransaction('angular-18', async transactionEvent => {

dev-packages/e2e-tests/test-applications/angular-20/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@angular/compiler-cli": "^20.0.0",
3636
"@playwright/test": "~1.50.0",
3737
"@sentry-internal/test-utils": "link:../../../test-utils",
38+
"@sentry/core": "latest || *",
3839
"@types/jasmine": "~5.1.0",
3940
"http-server": "^14.1.1",
4041
"jasmine-core": "~5.4.0",

dev-packages/e2e-tests/test-applications/angular-20/tests/performance.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
3+
// Cannot use @sentry/angular here due to build stuff
4+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
45

56
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
67
const transactionPromise = waitForTransaction('angular-20', async transactionEvent => {

0 commit comments

Comments
 (0)