diff --git a/docs/components/docs/ExamplesList.tsx b/docs/components/docs/ExamplesList.tsx index 463a3dd4b40..9ddf13fb630 100644 --- a/docs/components/docs/ExamplesList.tsx +++ b/docs/components/docs/ExamplesList.tsx @@ -103,6 +103,26 @@ export function Examples() { Illustrates how to use the json field type. Builds on the Task Manager starter project. + + Adds a custom Admin UI view to a json field which provides a + customised editing experience for users. Builds on the Task Manager starter project. + + + Adds a custom field type based on the integer field type which lets + users rate items on a 5-star scale. Builds on the Blog starter project. + ); } diff --git a/examples/README.md b/examples/README.md index 53be3a3080c..f764b97fb9d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -27,7 +27,6 @@ Each project below demonstrates a Keystone feature you can learn about and exper - [Custom field](./custom-field): Adds a custom `stars` field to the Blog base. - [Custom field view](./custom-field-view): Adds a custom Admin UI view to a `json` field to the Task Manager base. - ## Running examples To run an example, clone this repo and run the following commands: diff --git a/tests/examples-smoke-tests/custom-admin-ui-components.test.ts b/tests/examples-smoke-tests/custom-admin-ui-components.test.ts index e012eb04ebf..4b94f9fa583 100644 --- a/tests/examples-smoke-tests/custom-admin-ui-components.test.ts +++ b/tests/examples-smoke-tests/custom-admin-ui-components.test.ts @@ -10,7 +10,7 @@ exampleProjectTests('custom-admin-ui-components', browserType => { await page.goto('http://localhost:3000'); }); test('Load list', async () => { - await page.goto('https://localhost:3000'); + await page.goto('http://localhost:3000'); const content = await page.textContent('h3 a'); expect(content).toBe('LegendBoulder After'); }); diff --git a/tests/examples-smoke-tests/custom-admin-ui-pages.test.ts b/tests/examples-smoke-tests/custom-admin-ui-pages.test.ts index 4c1199833aa..408baf40399 100644 --- a/tests/examples-smoke-tests/custom-admin-ui-pages.test.ts +++ b/tests/examples-smoke-tests/custom-admin-ui-pages.test.ts @@ -10,7 +10,7 @@ exampleProjectTests('custom-admin-ui-pages', browserType => { await page.goto('http://localhost:3000'); }); test('Load list', async () => { - await page.goto('https://localhost:3000/custom-page'); + await page.goto('http://localhost:3000/custom-page'); const content = await page.textContent('body h1'); expect(content).toBe('Hello this is a custom page'); });