client-idle-timeout.test.js — astro Source File
Architecture documentation for client-idle-timeout.test.js, a javascript file in the astro codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR bcf02f02_eebf_fbac_db0a_40a11df13a18["client-idle-timeout.test.js"] 2ca394f6_a63d_3921_1f12_c5a979ea0039["test-utils.js"] bcf02f02_eebf_fbac_db0a_40a11df13a18 --> 2ca394f6_a63d_3921_1f12_c5a979ea0039 e27f6887_ea47_dd44_7933_5faa0f6bcf4d["testFactory"] bcf02f02_eebf_fbac_db0a_40a11df13a18 --> e27f6887_ea47_dd44_7933_5faa0f6bcf4d c373140e_7fdf_7fff_8884_991b85bc22b5["waitForHydrate"] bcf02f02_eebf_fbac_db0a_40a11df13a18 --> c373140e_7fdf_7fff_8884_991b85bc22b5 f8fbe851_c5d6_c4ee_c044_67a751668c18["test"] bcf02f02_eebf_fbac_db0a_40a11df13a18 --> f8fbe851_c5d6_c4ee_c044_67a751668c18 style bcf02f02_eebf_fbac_db0a_40a11df13a18 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect } from '@playwright/test';
import { testFactory, waitForHydrate } from './test-utils.js';
const test = testFactory(import.meta.url, { root: './fixtures/client-idle-timeout/' });
let devServer;
test.beforeAll(async ({ astro }) => {
devServer = await astro.startDevServer();
});
test.afterAll(async () => {
await devServer.stop();
});
test.describe('Client idle timeout', () => {
test('React counter', async ({ astro, 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');
await waitForHydrate(page, counter);
const inc = counter.locator('.increment');
await inc.click();
await expect(count, 'count incremented by 1').toHaveText('1');
});
});
Domain
Dependencies
Source
Frequently Asked Questions
What does client-idle-timeout.test.js do?
client-idle-timeout.test.js is a source file in the astro codebase, written in javascript. It belongs to the E2ETesting domain.
What does client-idle-timeout.test.js depend on?
client-idle-timeout.test.js imports 4 module(s): test, test-utils.js, testFactory, waitForHydrate.
Where is client-idle-timeout.test.js in the architecture?
client-idle-timeout.test.js is located at packages/astro/e2e/client-idle-timeout.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