Home / Function/ runTest() — astro Function Reference

runTest() — astro Function Reference

Architecture documentation for the runTest() function in ts-resolution.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  38da1fdb_69a8_1454_f3c6_91ff201e477f["runTest()"]
  eab129dc_0fd6_187a_65b0_2b7df04c646b["ts-resolution.test.js"]
  38da1fdb_69a8_1454_f3c6_91ff201e477f -->|defined in| eab129dc_0fd6_187a_65b0_2b7df04c646b
  c373140e_7fdf_7fff_8884_991b85bc22b5["waitForHydrate()"]
  38da1fdb_69a8_1454_f3c6_91ff201e477f -->|calls| c373140e_7fdf_7fff_8884_991b85bc22b5
  style 38da1fdb_69a8_1454_f3c6_91ff201e477f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/e2e/ts-resolution.test.js lines 6–23

function runTest(it) {
	it('client:idle', async ({ page, astro }) => {
		await page.goto(astro.resolveUrl('/'));

		const counter = page.locator('#client-idle');
		await expect(counter, 'component is visible').toBeVisible();

		const count = counter.locator('pre');
		await expect(count, 'initial count is 0').toHaveText('0');

		await waitForHydrate(page, counter);

		const inc = counter.locator('.increment');
		await inc.click();

		await expect(count, 'count incremented by 1').toHaveText('1');
	});
}

Domain

Subdomains

Frequently Asked Questions

What does runTest() do?
runTest() is a function in the astro codebase, defined in packages/astro/e2e/ts-resolution.test.js.
Where is runTest() defined?
runTest() is defined in packages/astro/e2e/ts-resolution.test.js at line 6.
What does runTest() call?
runTest() calls 1 function(s): waitForHydrate.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free