1
1
import { expect , test } from '@playwright/test' ;
2
2
import { waitForError , waitForTransaction } from '@sentry-internal/test-utils' ;
3
3
4
- test ( 'Should emit a span for a generateMetadata() function invokation ' , async ( { page } ) => {
4
+ test ( 'Should emit a span for a generateMetadata() function invocation ' , async ( { page } ) => {
5
5
const testTitle = 'should-emit-span' ;
6
6
7
7
const transactionPromise = waitForTransaction ( 'nextjs-14' , async transactionEvent => {
@@ -29,7 +29,7 @@ test('Should emit a span for a generateMetadata() function invokation', async ({
29
29
expect ( pageTitle ) . toBe ( testTitle ) ;
30
30
} ) ;
31
31
32
- test ( 'Should send a transaction and an error event for a faulty generateMetadata() function invokation ' , async ( {
32
+ test ( 'Should send a transaction and an error event for a faulty generateMetadata() function invocation ' , async ( {
33
33
page,
34
34
} ) => {
35
35
const testTitle = 'should-emit-error' ;
@@ -59,7 +59,7 @@ test('Should send a transaction and an error event for a faulty generateMetadata
59
59
expect ( transactionEvent . tags ?. [ 'my-global-scope-isolated-tag' ] ) . not . toBeDefined ( ) ;
60
60
} ) ;
61
61
62
- test ( 'Should send a transaction event for a generateViewport() function invokation ' , async ( { page } ) => {
62
+ test ( 'Should send a transaction event for a generateViewport() function invocation ' , async ( { page } ) => {
63
63
const testTitle = 'floob' ;
64
64
65
65
const transactionPromise = waitForTransaction ( 'nextjs-14' , async transactionEvent => {
@@ -83,7 +83,7 @@ test('Should send a transaction event for a generateViewport() function invokati
83
83
) ;
84
84
} ) ;
85
85
86
- test ( 'Should send a transaction and an error event for a faulty generateViewport() function invokation ' , async ( {
86
+ test ( 'Should send a transaction and an error event for a faulty generateViewport() function invocation ' , async ( {
87
87
page,
88
88
} ) => {
89
89
const testTitle = 'blargh' ;
@@ -109,7 +109,7 @@ test('Should send a transaction and an error event for a faulty generateViewport
109
109
expect ( errorEvent . transaction ) . toBe ( 'Page.generateViewport (/generation-functions)' ) ;
110
110
} ) ;
111
111
112
- test ( 'Should send a transaction event with correct status for a generateMetadata() function invokation with redirect()' , async ( {
112
+ test ( 'Should send a transaction event with correct status for a generateMetadata() function invocation with redirect()' , async ( {
113
113
page,
114
114
} ) => {
115
115
const testTitle = 'redirect-foobar' ;
@@ -126,7 +126,7 @@ test('Should send a transaction event with correct status for a generateMetadata
126
126
expect ( ( await transactionPromise ) . contexts ?. trace ?. status ) . toBe ( 'ok' ) ;
127
127
} ) ;
128
128
129
- test ( 'Should send a transaction event with correct status for a generateMetadata() function invokation with notfound()' , async ( {
129
+ test ( 'Should send a transaction event with correct status for a generateMetadata() function invocation with notfound()' , async ( {
130
130
page,
131
131
} ) => {
132
132
const testTitle = 'notfound-foobar' ;
0 commit comments