@salesforcedevs/sfdocs-e2e 1.0.7-alpha → 1.0.7-liquid-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/sfdocs-e2e",
3
- "version": "1.0.7-alpha",
3
+ "version": "1.0.7-liquid-alpha.1",
4
4
  "description": "E2E test suite for SFDocs static portal pages (SSG)",
5
5
  "license": "ISC",
6
6
  "bin": {
@@ -4,4 +4,5 @@ exports.config = {
4
4
  ...BASE_CONFIG.config,
5
5
  baseUrl: process.env.E2E_BASE_URL || 'http://localhost:3001',
6
6
  specs: ['./src/portal/specs/**/*.test.ts', './src/shared/specs/*.test.ts'],
7
+ exclude: ['./src/shared/specs/contentActionToolbar.test.ts'],
7
8
  };
@@ -13,7 +13,7 @@ describe('Homepage', () => {
13
13
  it('should show the expected number of projects', async () => {
14
14
  const projectCards = await HomePage.projectCards;
15
15
 
16
- expect(projectCards.length).toEqual(20);
16
+ expect(projectCards.length).toEqual(21);
17
17
  });
18
18
 
19
19
  // it('is accessible', () => {
@@ -35,6 +35,11 @@ class ApiRedocReferencePage extends Page {
35
35
  const lnbItems = await scrollbarContainer.$$('ul[role="menu"] > li');
36
36
  return lnbItems[index];
37
37
  }
38
+
39
+ async getProjectHeader(): Promise<WebdriverIO.Element> {
40
+ const sidebar = await this.getSidebar();
41
+ return sidebar.$('div.redoc-project-header');
42
+ }
38
43
  }
39
44
 
40
45
  export default ApiRedocReferencePage;
@@ -38,4 +38,13 @@ export class ReferencePage extends Page {
38
38
  async getSidebarContent(): Promise<WebdriverIO.Element> {
39
39
  return $('>>>div .sidebar-item-selected');
40
40
  }
41
+
42
+ async getSidebar(): Promise<WebdriverIO.Element> {
43
+ return (await $('>>>doc-content-layout')).shadow$('div > dx-sidebar-old');
44
+ }
45
+
46
+ async getSidebarItems(): Promise<WebdriverIO.ElementArray> {
47
+ const sidebar = await this.getSidebar();
48
+ return sidebar.shadow$$('div.container div.sidebar-content dx-tree');
49
+ }
41
50
  }
@@ -0,0 +1,59 @@
1
+ import GuidePage from '../pageobjects/guide.page';
2
+ import { ReferencePage } from '../pageobjects/reference.page';
3
+
4
+ const EN_US_GUIDE_PATH = '/docs/service/vscode-maintainer/guide/vscode-overview.html';
5
+ const EN_US_MARKDOWN_REFERENCE_PATH =
6
+ '/docs/commerce/flexible-references/references/shopper-manual-ref/quick-start.html';
7
+ const NON_MARKDOWN_REFERENCE_PATH = '/docs/test-metamind-oas-api/references/1mkfx9?meta=Summary';
8
+ const NON_EN_US_MARKDOWN_REFERENCE_PATH =
9
+ '/docs/commerce/ja-jp/flex-references-loc/references/manual-ref/commerce-cloud-api-overview.html';
10
+
11
+ async function expectToolbarButtons(toolbar: WebdriverIO.Element): Promise<void> {
12
+ const toolbarButtons = await toolbar.shadow$$('dx-button.toolbar-button');
13
+ expect(toolbarButtons.length).toBe(3);
14
+
15
+ const labels = await Promise.all(
16
+ toolbarButtons.map(async (button) => (await button.getText()).trim()),
17
+ );
18
+ expect(labels).toEqual(
19
+ expect.arrayContaining(['Copy as Markdown', 'View as Markdown', 'Copy URL to Markdown']),
20
+ );
21
+ }
22
+
23
+ describe('Content action toolbar scenarios', () => {
24
+ it('Markdown guide should have the toolbar', async () => {
25
+ const page = new GuidePage(EN_US_GUIDE_PATH);
26
+ page.open();
27
+ await page.waitPageLoad();
28
+
29
+ const toolbar = await $('>>>doc-content-action-toolbar');
30
+ await toolbar.waitForDisplayed();
31
+ await expectToolbarButtons(toolbar);
32
+ });
33
+
34
+ it('Markdown reference should have the toolbar', async () => {
35
+ const referencePage = new ReferencePage(EN_US_MARKDOWN_REFERENCE_PATH);
36
+ referencePage.open();
37
+ await referencePage.waitForMarkdownBasedReferencePageLoad();
38
+
39
+ const toolbar = await $('>>>doc-content-action-toolbar');
40
+ await toolbar.waitForDisplayed();
41
+ await expectToolbarButtons(toolbar);
42
+ });
43
+
44
+ it("Non-markdown reference shouldn't have toolbar", async () => {
45
+ const referencePage = new ReferencePage(NON_MARKDOWN_REFERENCE_PATH);
46
+ referencePage.open();
47
+ await referencePage.waitForSpecBasedReferencePageLoad();
48
+
49
+ const toolbar = await $('>>>doc-content-action-toolbar');
50
+ expect(await toolbar.isExisting()).toBeFalsy();
51
+ });
52
+
53
+ it("Non en-us locale page shouldn't have toolbar", async () => {
54
+ const nonEnUsReferencePage = new ReferencePage(NON_EN_US_MARKDOWN_REFERENCE_PATH);
55
+ nonEnUsReferencePage.open();
56
+ await nonEnUsReferencePage.waitForMarkdownBasedReferencePageLoad();
57
+ expect(await (await $('>>>doc-content-action-toolbar')).isExisting()).toBeFalsy();
58
+ });
59
+ });
@@ -64,7 +64,7 @@ describe('Test Guides page components functionality> ', () => {
64
64
  const sidebar = await (await $('doc-content-layout')).shadow$('div > dx-sidebar-old');
65
65
  const sideBarContent = await sidebar.shadow$$('div.container div.sidebar-content dx-tree');
66
66
 
67
- expect(sideBarContent.length).toEqual(4);
67
+ expect(sideBarContent.length).toEqual(6);
68
68
 
69
69
  const nextStepOption = await (
70
70
  await sideBarContent[3].shadow$('dx-tree-item')
@@ -6,56 +6,14 @@ let liquidEnabled = false;
6
6
  describe('Liquid Template Rendering', () => {
7
7
  before(async () => {
8
8
  try {
9
- // Check frontmatter to determine if Liquid is enabled
10
- let frontmatterCheckSucceeded = false;
11
-
12
- try {
13
- const fs = require('fs');
14
- const path = require('path');
15
- const matter = require('gray-matter');
16
-
17
- const contentPath = path.resolve(
18
- __dirname,
19
- '../../../../example-repository/content/en-us/liquid-project/guides/liquid-quickstart.md',
20
- );
21
-
22
- if (fs.existsSync(contentPath)) {
23
- const fileContent = fs.readFileSync(contentPath, 'utf-8');
24
- const { data: frontmatter } = matter(fileContent);
25
- liquidEnabled = frontmatter?.liquid?.enabled === true;
26
- frontmatterCheckSucceeded = true;
27
- }
28
- } catch (frontmatterError) {
29
- // Frontmatter check failed (file not found or gray-matter not available)
30
- // Fall back to checking rendered output
31
- frontmatterCheckSucceeded = false;
32
- }
33
-
34
- // Initialize page for tests
35
9
  page = new GuidePage('/docs/liquid-project/guide/liquid-quickstart.html');
36
- page.open();
10
+ await browser.url(page.path);
37
11
  await page.waitPageLoad();
38
12
 
39
- // Fallback: If frontmatter check didn't succeed, check rendered output
40
- if (!frontmatterCheckSucceeded) {
41
- const content = await $('>>>doc-content-layout');
42
- const text = await content.getText();
43
- const html = await content.getHTML();
44
-
45
- const hasLiquidOutput = text.includes('Hello from data.yaml');
46
- const hasRawSyntax =
47
- html.includes('{{ data.greeting }}') ||
48
- html.includes('{{ topic }}') ||
49
- (html.includes('{{') && html.includes('{%'));
50
-
51
- if (hasRawSyntax) {
52
- liquidEnabled = false;
53
- } else if (hasLiquidOutput) {
54
- liquidEnabled = true;
55
- } else {
56
- liquidEnabled = false;
57
- }
58
- }
13
+ const content = await $('>>>doc-content-layout');
14
+ const text = await content.getText();
15
+
16
+ liquidEnabled = text.includes('Hello from data.yaml');
59
17
  } catch (e) {
60
18
  liquidEnabled = false;
61
19
  }
@@ -64,7 +22,7 @@ describe('Liquid Template Rendering', () => {
64
22
  beforeEach(async () => {
65
23
  if (liquidEnabled) {
66
24
  page = new GuidePage('/docs/liquid-project/guide/liquid-quickstart.html');
67
- page.open();
25
+ await browser.url(page.path);
68
26
  await page.waitPageLoad();
69
27
  }
70
28
  });
@@ -79,10 +37,6 @@ describe('Liquid Template Rendering', () => {
79
37
 
80
38
  expect(text.includes('GitHub for writers')).toBeTruthy();
81
39
  expect(text.includes('Hello from data.yaml')).toBeTruthy();
82
-
83
- const html = await content.getHTML();
84
- expect(html.includes('{{ topic }}')).toBeFalsy();
85
- expect(html.includes('{{ data.greeting }}')).toBeFalsy();
86
40
  });
87
41
 
88
42
  it('Should render included templates from shared directory', async function () {
@@ -105,19 +59,14 @@ describe('Liquid Template Rendering', () => {
105
59
  }
106
60
 
107
61
  const content = await $('>>>doc-content-layout');
108
- const html = await content.getHTML();
109
62
  const text = await content.getText();
110
63
 
111
- expect(text.includes('create()')).toBeTruthy();
112
- expect(text.includes('query()')).toBeTruthy();
113
- expect(text.includes('update()')).toBeTruthy();
64
+ expect(text.includes('AccountId')).toBeTruthy();
65
+ expect(text.includes('Type:')).toBeTruthy();
66
+ expect(text.includes('Properties:')).toBeTruthy();
114
67
 
115
68
  const listItems = await content.$$('li');
116
69
  expect(listItems.length).toBeGreaterThan(5);
117
-
118
- expect(html.includes('{% for')).toBeFalsy();
119
- expect(html.includes('{%- for')).toBeFalsy();
120
- expect(html.includes('{% endfor')).toBeFalsy();
121
70
  });
122
71
 
123
72
  it('Should not process Liquid syntax inside code blocks', async function () {
@@ -126,15 +75,14 @@ describe('Liquid Template Rendering', () => {
126
75
  }
127
76
 
128
77
  const content = await $('>>>doc-content-layout');
129
- const html = await content.getHTML();
130
- const codeBlock = await content.$('code');
78
+ const codeBlock = await content.$('dx-code-block');
131
79
 
132
80
  expect(await codeBlock.isExisting()).toBeTruthy();
133
81
 
134
- const codeHtml = await codeBlock.getHTML();
135
- expect(codeHtml.includes('{{ data.greeting }}')).toBeTruthy();
136
- expect(codeHtml.includes('{{ topic }}')).toBeTruthy();
137
- expect(codeHtml.includes('{% for item in items %}')).toBeTruthy();
82
+ const codeBlockAttr = await codeBlock.getAttribute('code-block');
83
+ expect(codeBlockAttr.includes('{{ data.greeting }}')).toBeTruthy();
84
+ expect(codeBlockAttr.includes('{{ topic }}')).toBeTruthy();
85
+ expect(codeBlockAttr.includes('{% for item in items %}')).toBeTruthy();
138
86
 
139
87
  const text = await content.getText();
140
88
  expect(text.includes('Visit')).toBeTruthy();
@@ -160,7 +108,109 @@ describe('Liquid Template Rendering', () => {
160
108
  expect(html.includes('{{ id2 }}')).toBeFalsy();
161
109
  });
162
110
 
163
- it('Should not process Liquid when frontmatter has liquid.enabled as false', async function () {
111
+ it('Should render repository-level variables from content-config.yml', async function () {
112
+ if (!liquidEnabled) {
113
+ this.skip();
114
+ }
115
+
116
+ const content = await $('>>>doc-content-layout');
117
+ const text = await content.getText();
118
+ const html = await content.getHTML();
119
+
120
+ expect(text.includes('Salesforce Platform')).toBeTruthy();
121
+ expect(text.includes('62.0')).toBeTruthy();
122
+ expect(text.includes('sf')).toBeTruthy();
123
+ expect(html.includes('{{ variables.platform')).toBeFalsy();
124
+ });
125
+
126
+ it('Should render englishonly block content in production', async function () {
127
+ if (!liquidEnabled) {
128
+ this.skip();
129
+ }
130
+
131
+ const content = await $('>>>doc-content-layout');
132
+ const text = await content.getText();
133
+ const html = await content.getHTML();
134
+
135
+ expect(text.includes('This feature is currently only available in English')).toBeTruthy();
136
+ expect(html.includes('{% englishonly')).toBeFalsy();
137
+ expect(html.includes('{% endenglishonly')).toBeFalsy();
138
+ });
139
+
140
+ it('Should render future block content when previewFuture is enabled', async function () {
141
+ if (!liquidEnabled) {
142
+ this.skip();
143
+ }
144
+
145
+ const content = await $('>>>doc-content-layout');
146
+ const text = await content.getText();
147
+
148
+ expect(text.includes('Coming Soon')).toBeTruthy();
149
+ });
150
+
151
+ it('Should render liquid.data string format — single YAML file on root context', async function () {
152
+ if (!liquidEnabled) {
153
+ this.skip();
154
+ }
155
+
156
+ const content = await $('>>>doc-content-layout');
157
+ const text = await content.getText();
158
+
159
+ expect(text.includes('Hello from data.yaml')).toBeTruthy();
160
+ });
161
+
162
+ it('Should render liquid.data object format — multiple YAML files each under a named key', async function () {
163
+ if (!liquidEnabled) {
164
+ this.skip();
165
+ }
166
+
167
+ const dataFormatsPage = new GuidePage('/docs/redirects-url/guide/orders-api-overview.html');
168
+ await browser.url(dataFormatsPage.path);
169
+ await dataFormatsPage.waitPageLoad();
170
+
171
+ const content = await $('>>>doc-content-layout');
172
+ const text = await content.getText();
173
+ const html = await content.getHTML();
174
+
175
+ expect(text.includes('Sample data file to check the multi-include')).toBeTruthy();
176
+ expect(text.includes('Represents a scheduled or completed visit')).toBeTruthy();
177
+ expect(html.includes('{{ two.summary }}')).toBeFalsy();
178
+ expect(html.includes('{{ data.one.summary }}')).toBeFalsy();
179
+ });
180
+
181
+ it('Should render the future topic page when previewFuture is enabled', async function () {
182
+ if (!liquidEnabled) {
183
+ this.skip();
184
+ }
185
+
186
+ const futurePage = new GuidePage('/docs/liquid-project/guide/future-topic.html');
187
+ await browser.url(futurePage.path);
188
+ await futurePage.waitPageLoad();
189
+
190
+ const content = await $('>>>doc-content-layout');
191
+ const text = await content.getText();
192
+
193
+ expect(text.includes('Future Feature')).toBeTruthy();
194
+ expect(text.includes('previewFuture')).toBeTruthy();
195
+ });
196
+
197
+ it('Should render the englishonly topic page', async function () {
198
+ if (!liquidEnabled) {
199
+ this.skip();
200
+ }
201
+
202
+ const englishOnlyPage = new GuidePage('/docs/liquid-project/guide/english-only-topic.html');
203
+ await browser.url(englishOnlyPage.path);
204
+ await englishOnlyPage.waitPageLoad();
205
+
206
+ const content = await $('>>>doc-content-layout');
207
+ const text = await content.getText();
208
+
209
+ expect(text.includes('English-Only Topic')).toBeTruthy();
210
+ expect(text.includes('filters: [englishonly]')).toBeTruthy();
211
+ });
212
+
213
+ it('Should not render raw Liquid syntax when Liquid processing is disabled', async function () {
164
214
  if (!liquidEnabled) {
165
215
  this.skip();
166
216
  }
@@ -168,7 +218,7 @@ describe('Liquid Template Rendering', () => {
168
218
  const disabledPage = new GuidePage(
169
219
  '/docs/liquid-project/guide/liquid-learning-resources.html',
170
220
  );
171
- disabledPage.open();
221
+ await browser.url(disabledPage.path);
172
222
  await disabledPage.waitPageLoad();
173
223
 
174
224
  const content = await $('>>>doc-content-layout');
@@ -1,6 +1,7 @@
1
1
  import { it } from 'mocha';
2
2
  import RedocApisPage from '../pageobjects/api-redoc-reference.page';
3
3
  import OverviewPage from '../pageobjects/overview.page';
4
+ import { ReferencePage } from '../pageobjects/reference.page';
4
5
  import {
5
6
  waitAndGetDocPhaseParentInRedocReferencesPage,
6
7
  assertDocPhaseUnavailability,
@@ -9,6 +10,7 @@ import {
9
10
  } from '../pageobjects/doc-phase-config';
10
11
 
11
12
  let page: RedocApisPage;
13
+ let refPage: ReferencePage;
12
14
  describe('Redoc API Reference page', () => {
13
15
  describe('check layouts', () => {
14
16
  before(async () => {
@@ -167,4 +169,145 @@ describe('Redoc API Reference page', () => {
167
169
  expect(await heading.isDisplayedInViewport()).toBe(true);
168
170
  });
169
171
  });
172
+
173
+ describe('Flexible References with Redoc Rendering', () => {
174
+ describe('All references view', () => {
175
+ before(async () => {
176
+ refPage = new ReferencePage('docs/service/multi-oas-redoc/references');
177
+ refPage.open();
178
+
179
+ await refPage.waitForMarkdownBasedReferencePageLoad();
180
+ });
181
+
182
+ it('should display all reference titles in LNB', async () => {
183
+ const treeItems = await refPage.getSidebarItems();
184
+
185
+ expect(treeItems.length).toEqual(3);
186
+ });
187
+
188
+ it('should show arrow button after OAS reference titles', async () => {
189
+ const sideBarContent = await refPage.getSidebarItems();
190
+
191
+ const secondItem = sideBarContent[1];
192
+ const treeItem = await secondItem.shadow$('dx-tree-item');
193
+ const treeTile = await treeItem.shadow$('a > dx-tree-tile');
194
+ const arrowIcon = await treeTile.shadow$(
195
+ 'a > div[role="heading"] > div.tile-forward-arrow',
196
+ );
197
+
198
+ expect(await arrowIcon.isExisting()).toBeTruthy();
199
+ });
200
+ });
201
+
202
+ describe('Navigation and content verification', () => {
203
+ it('should display markdown content when first reference is clicked', async () => {
204
+ const sideBarContent = await refPage.getSidebarItems();
205
+ const firstItem = sideBarContent[0];
206
+ const treeItem = await firstItem.shadow$('dx-tree-item');
207
+ await treeItem.click();
208
+
209
+ const contentLayout = await $('>>>doc-content-layout');
210
+ await contentLayout.waitForDisplayed();
211
+
212
+ expect(await contentLayout.isDisplayed()).toBeTruthy();
213
+
214
+ const heading = await $('>>>h1');
215
+ const headingText = await heading.getText();
216
+
217
+ expect(headingText).toEqual('Metamind API references');
218
+ });
219
+
220
+ it('should display Redoc UI when OAS reference is clicked', async () => {
221
+ await browser.url('/docs/service/multi-oas-redoc/references');
222
+ await refPage.waitForMarkdownBasedReferencePageLoad();
223
+
224
+ const sideBarContent = await refPage.getSidebarItems();
225
+ const secondItem = sideBarContent[1];
226
+ const treeItem = await secondItem.shadow$('dx-tree-item');
227
+ await treeItem.click();
228
+
229
+ const redocContainer = await $('doc-redoc-reference > .redoc-container');
230
+ await redocContainer.waitForDisplayed({ timeout: 30000 });
231
+
232
+ expect(await redocContainer.isDisplayed()).toBeTruthy();
233
+
234
+ page = new RedocApisPage(
235
+ 'docs/service/multi-oas-redoc/references/redoc-orders-multiple',
236
+ );
237
+ });
238
+
239
+ it('should have the correct api info title', async () => {
240
+ const apiTitle = await page.getApiTitle();
241
+ const titleText = await apiTitle.getText();
242
+
243
+ expect(titleText).toMatch('Einstein Vision and Einstein Language');
244
+ });
245
+
246
+ it('should display current reference title and "All References" with back arrow in LNB', async () => {
247
+ const projectHeaderContainer = await page.getProjectHeader();
248
+
249
+ const backButton = await projectHeaderContainer.$('a.redoc-project-back');
250
+ const allReference = await backButton.$('span.redoc-project-title');
251
+ const specTitle = await projectHeaderContainer.$('h2.redoc-spec-title');
252
+
253
+ expect(await allReference.getText()).toEqual('All Reference');
254
+ expect(await backButton.isExisting()).toBeTruthy();
255
+ expect(await specTitle.getText()).toEqual('Orders API');
256
+ });
257
+ });
258
+
259
+ describe('Navigation back to all references', () => {
260
+ before(async () => {
261
+ page = new RedocApisPage(
262
+ 'docs/service/multi-oas-redoc/references/redoc-orders-multiple',
263
+ );
264
+ page.open();
265
+ await page.waitPageLoad();
266
+ });
267
+
268
+ it('should navigate back to main URL when back arrow is clicked', async () => {
269
+ const projectHeaderContainer = await page.getProjectHeader();
270
+ const backButton = await projectHeaderContainer.$('a.redoc-project-back');
271
+
272
+ await backButton.click();
273
+
274
+ const contentLayout = await $('>>>doc-content-layout');
275
+ await contentLayout.waitForDisplayed();
276
+
277
+ const currentUrl = await browser.getUrl();
278
+
279
+ expect(currentUrl).toContain('/docs/service/multi-oas-redoc/references');
280
+ expect(currentUrl).not.toContain('redoc-orders-multiple');
281
+ });
282
+
283
+ it('should display all references in LNB after navigating back', async () => {
284
+ refPage = new ReferencePage('/docs/service/multi-oas-redoc/references');
285
+ const treeItems = await refPage.getSidebarItems();
286
+
287
+ expect(treeItems.length).toEqual(3);
288
+ });
289
+
290
+ it('should navigate to third reference when clicked', async () => {
291
+ const sideBarContent = await refPage.getSidebarItems();
292
+ const thirdItem = sideBarContent[2];
293
+ const treeItem = await thirdItem.shadow$('dx-tree-item');
294
+ await treeItem.click();
295
+
296
+ const redocContainer = await $('doc-redoc-reference > .redoc-container');
297
+ await redocContainer.waitForDisplayed({ timeout: 30000 });
298
+
299
+ expect(await redocContainer.isDisplayed()).toBeTruthy();
300
+ expect(await browser.getUrl()).toContain('redoc-quip-admin-api');
301
+
302
+ page = new RedocApisPage(
303
+ 'docs/service/multi-oas-redoc/references/redoc-quip-admin-api',
304
+ );
305
+
306
+ const apiTitle = await page.getApiTitle();
307
+ const titleText = await apiTitle.getText();
308
+
309
+ expect(titleText).toMatch('Quip Admin API');
310
+ });
311
+ });
312
+ });
170
313
  });
@@ -24,8 +24,11 @@ describe('Video Plugin Scenarios ', () => {
24
24
  expect(await videoTitle?.getText()).toBe('Video from YouTube');
25
25
  const videoContainer = await videoRootElement?.$('.video-plugin-container');
26
26
  const iframeElement = await videoContainer?.$('iframe');
27
+ // The video plugin normalizes the YouTube host to www.youtube.com to
28
+ // avoid a cross-origin redirect that would drop the iframe's fullscreen
29
+ // grant (W-23222416). The authored src is `https://youtube.com/...`.
27
30
  expect(await iframeElement?.getAttribute('src')).toBe(
28
- 'https://youtube.com/embed/di6iwHhrH6s',
31
+ 'https://www.youtube.com/embed/di6iwHhrH6s',
29
32
  );
30
33
  });
31
34
  });
@@ -18,6 +18,7 @@ exports.config = {
18
18
 
19
19
  // Exclude tests that require dynamic server features or pages not in static build
20
20
  exclude: [
21
+ // './src/shared/specs/liquid.test.ts',
21
22
  './src/portal/specs/docs.api.test.ts',
22
23
  './src/portal/specs/docs.test.ts',
23
24
  './src/shared/specs/banner.test.ts',
@@ -18,6 +18,8 @@ exports.config = {
18
18
 
19
19
  // Exclude tests that require dynamic server features or pages not in static build
20
20
  exclude: [
21
+ // Liquid tests require previewFuture, variables, and redirects-url project — not in static build
22
+ './src/shared/specs/liquid.test.ts',
21
23
  // /docs/apis landing page doesn't exist in static builds
22
24
  './src/portal/specs/docs.api.test.ts',
23
25
  // /docs landing page doesn't exist in static builds
package/wdio.conf.js CHANGED
@@ -3,4 +3,5 @@ const BASE_CONFIG = require('./common-wdio.conf');
3
3
  exports.config = {
4
4
  ...BASE_CONFIG.config,
5
5
  specs: ['./src/content-repo/specs/**/*.test.ts', './src/shared/specs/*.test.ts'],
6
+ exclude: ['./src/shared/specs/contentActionToolbar.test.ts'],
6
7
  };