diff options
author | 2024-01-24 23:23:45 +0100 | |
---|---|---|
committer | 2024-01-24 16:23:45 -0600 | |
commit | c820defe654d5eacafdf4b1b08bc0a815a62c8be (patch) | |
tree | e1c235ed53349680c9395e6a8e74bbd7936e0501 /packages/integrations/alpinejs/test/plugin-script-import.test.js | |
parent | 54acb6aeb4e6c0e19128ef6bf07e154ae2f0950d (diff) | |
download | astro-c820defe654d5eacafdf4b1b08bc0a815a62c8be.tar.gz astro-c820defe654d5eacafdf4b1b08bc0a815a62c8be.tar.zst astro-c820defe654d5eacafdf4b1b08bc0a815a62c8be.zip |
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>
Diffstat (limited to 'packages/integrations/alpinejs/test/plugin-script-import.test.js')
-rw-r--r-- | packages/integrations/alpinejs/test/plugin-script-import.test.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/integrations/alpinejs/test/plugin-script-import.test.js b/packages/integrations/alpinejs/test/plugin-script-import.test.js new file mode 100644 index 000000000..397249870 --- /dev/null +++ b/packages/integrations/alpinejs/test/plugin-script-import.test.js @@ -0,0 +1,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(''); + }); +}); |