Home / File/ async-edge-cases.spec.ts — vue Source File

async-edge-cases.spec.ts — vue Source File

Architecture documentation for async-edge-cases.spec.ts, a typescript file in the vue codebase. 3 imports, 0 dependents.

File typescript VueCore 3 imports

Entity Profile

Dependency Diagram

graph LR
  7bbe06b9_e684_102b_1193_7fbfdb7c9170["async-edge-cases.spec.ts"]
  89e1d5c3_816b_464a_8e3e_7496dffe6752["e2eUtils.ts"]
  7bbe06b9_e684_102b_1193_7fbfdb7c9170 --> 89e1d5c3_816b_464a_8e3e_7496dffe6752
  29f97b51_38b6_0943_0c18_913d76c86b26["setupPuppeteer"]
  7bbe06b9_e684_102b_1193_7fbfdb7c9170 --> 29f97b51_38b6_0943_0c18_913d76c86b26
  7c454890_6339_b799_a183_9dcaf8992812["path"]
  7bbe06b9_e684_102b_1193_7fbfdb7c9170 --> 7c454890_6339_b799_a183_9dcaf8992812
  style 7bbe06b9_e684_102b_1193_7fbfdb7c9170 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @vitest-environment node
import path from 'path'
import { E2E_TIMEOUT, setupPuppeteer } from './e2eUtils'

describe('basic-ssr', () => {
  const { page, text, click, isChecked } = setupPuppeteer()

  test(
    'should work',
    async () => {
      await page().goto(
        `file://${path.resolve(__dirname, `async-edge-cases.html`)}`
      )

      // #4510
      expect(await text('#case-1')).toContain('1')
      expect(await isChecked('#case-1 input')).toBe(false)

      await click('#case-1 input')
      expect(await text('#case-1')).toContain('2')
      expect(await isChecked('#case-1 input')).toBe(true)

      await click('#case-1 input')
      expect(await text('#case-1')).toContain('3')
      expect(await isChecked('#case-1 input')).toBe(false)

      // #6566
      expect(await text('#case-2 button')).toContain('Expand is True')
      expect(await text('.count-a')).toContain('countA: 0')
      expect(await text('.count-b')).toContain('countB: 0')

      await click('#case-2 button')
      expect(await text('#case-2 button')).toContain('Expand is False')
      expect(await text('.count-a')).toContain('countA: 1')
      expect(await text('.count-b')).toContain('countB: 0')

      await click('#case-2 button')
      expect(await text('#case-2 button')).toContain('Expand is True')
      expect(await text('.count-a')).toContain('countA: 1')
      expect(await text('.count-b')).toContain('countB: 1')
    },
    E2E_TIMEOUT
  )
})

Domain

Dependencies

Frequently Asked Questions

What does async-edge-cases.spec.ts do?
async-edge-cases.spec.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain.
What does async-edge-cases.spec.ts depend on?
async-edge-cases.spec.ts imports 3 module(s): e2eUtils.ts, path, setupPuppeteer.
Where is async-edge-cases.spec.ts in the architecture?
async-edge-cases.spec.ts is located at test/e2e/async-edge-cases.spec.ts (domain: VueCore, directory: test/e2e).

Analyze Your Own Codebase

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

Try Supermodel Free