hydration-race.test.js — astro Source File
Architecture documentation for hydration-race.test.js, a javascript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1018b57b_d8e9_ad3c_51ba_bcd0aebe2a54["hydration-race.test.js"] 2ca394f6_a63d_3921_1f12_c5a979ea0039["test-utils.js"] 1018b57b_d8e9_ad3c_51ba_bcd0aebe2a54 --> 2ca394f6_a63d_3921_1f12_c5a979ea0039 e27f6887_ea47_dd44_7933_5faa0f6bcf4d["testFactory"] 1018b57b_d8e9_ad3c_51ba_bcd0aebe2a54 --> e27f6887_ea47_dd44_7933_5faa0f6bcf4d f8fbe851_c5d6_c4ee_c044_67a751668c18["test"] 1018b57b_d8e9_ad3c_51ba_bcd0aebe2a54 --> f8fbe851_c5d6_c4ee_c044_67a751668c18 style 1018b57b_d8e9_ad3c_51ba_bcd0aebe2a54 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/hydration-race/',
});
let devServer;
test.beforeEach(async ({ astro }) => {
devServer = await astro.startDevServer();
});
test.afterEach(async () => {
await devServer.stop();
});
test.describe('Hydration race', () => {
test('Islands inside of slots hydrate', async ({ page, astro }) => {
await page.goto(astro.resolveUrl('/slot'));
const one = page.locator('#one');
await expect(one, 'updated text').toHaveText('Hello One in the client');
const two = page.locator('#two');
await expect(two, 'updated text').toHaveText('Hello Two in the client');
const three = page.locator('#three');
await expect(three, 'updated text').toHaveText('Hello Three in the client');
const four = page.locator('#four');
await expect(four, 'updated text').toHaveText('Hello Four in the client');
});
});
Domain
Dependencies
Source
Frequently Asked Questions
What does hydration-race.test.js do?
hydration-race.test.js is a source file in the astro codebase, written in javascript. It belongs to the E2ETesting domain.
What does hydration-race.test.js depend on?
hydration-race.test.js imports 3 module(s): test, test-utils.js, testFactory.
Where is hydration-race.test.js in the architecture?
hydration-race.test.js is located at packages/astro/e2e/hydration-race.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