Skip to content

Commit

Permalink
Merge branch 'example/admin-ui-customisation' of https://github.com/k…
Browse files Browse the repository at this point in the history
…eystonejs/keystone into example/admin-ui-customisation
  • Loading branch information
gwyneplaine committed Jul 12, 2021
2 parents 4b373f5 + 69701f4 commit 209181e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
20 changes: 20 additions & 0 deletions docs/components/docs/ExamplesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,26 @@ export function Examples() {
Illustrates how to use the <InlineCode>json</InlineCode> field type. Builds on the Task
Manager starter project.
</Well>
<Well
grad="grad3"
heading="Custom Field View"
href="https://github.com/keystonejs/keystone/blob/master/examples/custom-field-view"
target="_blank"
rel="noopener noreferrer"
>
Adds a custom Admin UI view to a <InlineCode>json</InlineCode> field which provides a
customised editing experience for users. Builds on the Task Manager starter project.
</Well>
<Well
grad="grad3"
heading="Custom Field Type"
href="https://github.com/keystonejs/keystone/blob/master/examples/custom-field"
target="_blank"
rel="noopener noreferrer"
>
Adds a custom field type based on the <InlineCode>integer</InlineCode> field type which lets
users rate items on a 5-star scale. Builds on the Blog starter project.
</Well>
</div>
);
}
1 change: 0 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
2 changes: 1 addition & 1 deletion tests/examples-smoke-tests/custom-admin-ui-pages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down

0 comments on commit 209181e

Please sign in to comment.