Skip to content

Commit

Permalink
add bare query test
Browse files Browse the repository at this point in the history
  • Loading branch information
archiewood committed Jan 22, 2025
1 parent c7547d8 commit 77bbbfb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/basic/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ This page can be found in your project at `/pages/index.md`. Make a change to th
series=category
/>

The top category is {orders_by_category[0].category}

## What's Next?

- [Connect your data sources](settings)
Expand Down
5 changes: 5 additions & 0 deletions e2e/basic/sources/needful_things/connection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was automatically generated
name: needful_things
type: duckdb
options:
filename: needful_things.duckdb
Binary file not shown.
1 change: 1 addition & 0 deletions e2e/basic/sources/needful_things/orders.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select * from orders
7 changes: 7 additions & 0 deletions e2e/basic/tests/tests.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ test('shows different logo in light and dark mode', async ({ page }) => {
logo = await getLogo(page);
await expect(logo).toHaveAttribute('src', '/darkLogo.png');
});

test('bare query reference', async ({ page }) => {
await page.goto('/');
await waitForPageToLoad(page);

await expect(page.getByText('The top category is Odd Equipment')).toBeVisible();
});

0 comments on commit 77bbbfb

Please sign in to comment.