mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
13 lines
456 B
JavaScript
13 lines
456 B
JavaScript
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('');
|
|
});
|
|
});
|