aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/alpinejs/test/directive.test.js
blob: 440e2a6b5bc20da54471dafea618b27a808d1a62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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');
	});
});