docs: use sapper/cypress for e2e testing

This commit is contained in:
Eric Liu 2020-07-19 11:41:15 -07:00
commit ccdf6af78d
36 changed files with 4373 additions and 26 deletions

View file

@ -0,0 +1,27 @@
<script context="module">
export function preload() {
return this.fetch("components.json")
.then(r => r.json())
.then(data => ({ data }));
}
</script>
<script>
export let data = [];
import { UnorderedList, ListItem, Link } from "carbon-components-svelte";
</script>
<svelte:head>
<title>Components</title>
</svelte:head>
<h1>Components</h1>
<UnorderedList>
{#each data as data, i (data.title)}
<ListItem>
<Link rel="prefetch" href="components/{data.slug}">{data.title}</Link>
</ListItem>
{/each}
</UnorderedList>