summaryrefslogtreecommitdiff
path: root/packages/integrations/alpinejs/test/plugin-script-import.test.js
blob: c280e559750e0a478c3196ea814a61c8d03ee21a (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/plugin-script-import/' });

test.describe('Plugin Script Import', () => {
	test('Extending Alpine using a script import should work', async ({ page, astro }) => {
		await page.goto(astro.resolveUrl('/'));

		const el = page.locator('#foo');
		expect(await el.getAttribute('hidden')).toBe('');
	});
});