plugin-script-import.test.js 456 B

12345678910111213
  1. import { expect } from '@playwright/test';
  2. import { prepareTestFactory } from './test-utils.js';
  3. const { test } = prepareTestFactory({ root: './fixtures/plugin-script-import/' });
  4. test.describe('Plugin Script Import', () => {
  5. test('Extending Alpine using a script import should work', async ({ page, astro }) => {
  6. await page.goto(astro.resolveUrl('/'));
  7. const el = page.locator('#foo');
  8. expect(await el.getAttribute('hidden')).toBe('');
  9. });
  10. });