0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/packages/integrations/alpinejs/test/plugin-script-import.test.js
Florian Lefebvre c820defe65
chore(alpinejs): add e2e test (#9812)
* fix(rss): rssSchema definition to allow calling standard zod object methods

* fix: condition

* chore(alpinejs): add e2e test

* Discard changes to .changeset/mighty-icons-try.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-24 16:23:45 -06:00

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('');
});
});