0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/alpinejs/test/directive.test.js
Florian Lefebvre 1153331cbb
feat(alpinejs): allow customizing the Alpine instance (#9751)
* feat(alpinejs): allows customzing the Alpine instance

* chore: add e2e tests

* fix: rename script

* Update index.ts

* fix: lockfile
2024-01-24 14:43:03 +00:00

13 lines
389 B
JavaScript

import { expect } from '@playwright/test';
import { prepareTestFactory } from './test-utils.js';
const { test } = prepareTestFactory({ root: './fixtures/basics/' });
test.describe('Basics', () => {
test('Alpine is working', async ({ page, astro }) => {
await page.goto(astro.resolveUrl('/'));
const el = page.locator('#foo');
expect(await el.textContent()).toBe('bar');
});
});