Skip to content

Commit 59c2618

Browse files
committed
III-6948: set redirect cookies
1 parent 9a18849 commit 59c2618

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/test/e2e/events/event-preview-actions.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,15 @@ const test = base.extend<TestFixtures>({
5252
});
5353

5454
test.describe('Event Preview Sidebar Actions', () => {
55-
test.beforeEach(async ({ page, eventPreviewUrl }) => {
55+
test.beforeEach(async ({ page, eventPreviewUrl, context }) => {
56+
await context.addCookies([
57+
{
58+
name: 'ff_react_event_preview',
59+
value: 'true',
60+
domain: 'localhost',
61+
path: '/',
62+
},
63+
]);
5664
page.on('console', (msg) => {
5765
if (msg.type() === 'error' && msg.text().includes('Hydration')) {
5866
return;

src/test/e2e/events/movie-preview-actions.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,15 @@ const test = base.extend<TestFixtures>({
5656
});
5757

5858
test.describe('Movie Preview Sidebar Actions', () => {
59-
test.beforeEach(async ({ page, moviePreviewUrl }) => {
59+
test.beforeEach(async ({ page, moviePreviewUrl, context }) => {
60+
await context.addCookies([
61+
{
62+
name: 'ff_react_event_preview',
63+
value: 'true',
64+
domain: 'localhost',
65+
path: '/',
66+
},
67+
]);
6068
page.on('console', (msg) => {
6169
if (msg.type() === 'error' && msg.text().includes('Hydration')) {
6270
return;

0 commit comments

Comments
 (0)