multiple-frameworks.test.js — astro Source File
Architecture documentation for multiple-frameworks.test.js, a javascript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 96e33058_d986_682b_99a9_e55d58d77e65["multiple-frameworks.test.js"] 2ca394f6_a63d_3921_1f12_c5a979ea0039["test-utils.js"] 96e33058_d986_682b_99a9_e55d58d77e65 --> 2ca394f6_a63d_3921_1f12_c5a979ea0039 e27f6887_ea47_dd44_7933_5faa0f6bcf4d["testFactory"] 96e33058_d986_682b_99a9_e55d58d77e65 --> e27f6887_ea47_dd44_7933_5faa0f6bcf4d f8fbe851_c5d6_c4ee_c044_67a751668c18["test"] 96e33058_d986_682b_99a9_e55d58d77e65 --> f8fbe851_c5d6_c4ee_c044_67a751668c18 style 96e33058_d986_682b_99a9_e55d58d77e65 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect } from '@playwright/test';
import { testFactory } from './test-utils.js';
const test = testFactory(import.meta.url, { root: './fixtures/multiple-frameworks/' });
let devServer;
test.beforeAll(async ({ astro }) => {
devServer = await astro.startDevServer();
});
test.afterAll(async () => {
await devServer.stop();
});
test.skip('Multiple frameworks', () => {
test.skip('React counter', async ({ page }) => {
await page.goto(astro.resolveUrl('/'));
const counter = page.locator('#react-counter');
await expect(counter, 'component is visible').toBeVisible();
const count = counter.locator('pre');
await expect(count, 'initial count is 0').toHaveText('0');
const increment = counter.locator('.increment');
await increment.click();
await expect(count, 'count incremented by 1').toHaveText('1');
});
test('Preact counter', async ({ page }) => {
await page.goto(astro.resolveUrl('/'));
const counter = page.locator('#preact-counter');
await expect(counter, 'component is visible').toBeVisible();
const count = counter.locator('pre');
await expect(count, 'initial count is 0').toHaveText('0');
const increment = counter.locator('.increment');
await increment.click();
await expect(count, 'count incremented by 1').toHaveText('1');
});
test.skip('Solid counter', async ({ page }) => {
await page.goto(astro.resolveUrl('/'));
const counter = page.locator('#solid-counter');
await expect(counter, 'component is visible').toBeVisible();
const count = counter.locator('pre');
await expect(count, 'initial count is 0').toHaveText('0');
const increment = counter.locator('.increment');
await increment.click();
await expect(count, 'count incremented by 1').toHaveText('1');
});
// ... (124 more lines)
Domain
Dependencies
Source
Frequently Asked Questions
What does multiple-frameworks.test.js do?
multiple-frameworks.test.js is a source file in the astro codebase, written in javascript. It belongs to the E2ETesting domain.
What does multiple-frameworks.test.js depend on?
multiple-frameworks.test.js imports 3 module(s): test, test-utils.js, testFactory.
Where is multiple-frameworks.test.js in the architecture?
multiple-frameworks.test.js is located at packages/astro/e2e/multiple-frameworks.test.js (domain: E2ETesting, directory: packages/astro/e2e).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free