Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add an Angular component testing example with TestBed - #41

Open
carrerasdarren-cell wants to merge 1 commit into
webdriverio:mainfrom
carrerasdarren-cell:codex/angular-browser-component-9912
Open

carrerasdarren-cell wants to merge 1 commit into
webdriverio:mainfrom
carrerasdarren-cell:codex/angular-browser-component-9912

Conversation

@carrerasdarren-cell

Copy link
Copy Markdown

Adds the runnable companion example requested in webdriverio/webdriverio#9912. It mounts an Angular 21 counter with TestBed, waits for the initial render, clicks its button in Chrome and checks that the displayed count changes from 0 to 1. The example uses an inline template with JIT compilation. It also adds the example to the existing CI matrix with Node 24.

To try it, run npm ci and npm run wdio from angular-typescript-vite/.

I used OpenAI Codex for implementation and validation. A clean npm install, TypeScript check and headless Chrome 157 test passed locally with WebdriverIO 10.2.0 and Angular 21.2.26. As a regression check, incrementing by two made the browser test fail with an observed count of 2. I restored the component and reran the passing test before submission.

Related to #4. This example covers inline templates through Vite; it does not exercise an Angular CLI build or external templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant