mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
Tests: drop change-detector component tests
This commit is contained in:
@@ -51,19 +51,6 @@ function click(name: string) {
|
||||
}
|
||||
|
||||
describe('Onboarding', () => {
|
||||
test('greets the user and offers the primary create action', () => {
|
||||
expect(container.textContent).toContain('Welcome to Astrolabe');
|
||||
expect(container.textContent).toContain('Create your first snippet');
|
||||
});
|
||||
|
||||
test('renders one card per example, each with an Add control', () => {
|
||||
for (const example of CHART_EXAMPLES) {
|
||||
expect(container.textContent).toContain(example.name);
|
||||
expect(container.textContent).toContain(example.description);
|
||||
expect(container.querySelector(`button[aria-label="Add ${example.name}"]`)).not.toBeNull();
|
||||
}
|
||||
});
|
||||
|
||||
test('"Create your first snippet" creates one snippet from the sample template', () => {
|
||||
click('Create your first snippet');
|
||||
const { snippets, activeSnippetId } = useSnippetStore.getState();
|
||||
|
||||
Reference in New Issue
Block a user