Skip to content

Commit 3edfd9d

Browse files
author
ostepane
committed
Merge branch 'gh-pages' of https://github.com/devonfw-training/devon4ng-training into gh-pages
2 parents f371311 + 0045607 commit 3edfd9d

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

e2e-cypress/index.html

+12
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ <h3>It is just another node module...</h3>
7272
</section>
7373
<section>
7474
<h3>...which comes with everything you need to start testing!</h3>
75+
<pre><code class="hljs typescript" data-trim data-noescape>
76+
npx cypress open
77+
</code></pre>
7578
<img src="img/cypress-start.png" alt="Cypress start page">
7679
</section>
7780
<section>
@@ -172,6 +175,15 @@ <h3>Some best practices:</h3>
172175
<li>use as <span class="highlight">many assertions</span> as needed. It's not unit testing.</li>
173176
</ul>
174177
</section>
178+
<section id="summary">
179+
<h2>Summary</h2>
180+
<ul>
181+
<li>E2E testing is important</li>
182+
<li>Cypress comes with everything you need</li>
183+
<li>cy API: visit, get, click, should, etc.</li>
184+
<li>Familiar test structure</li>
185+
</ul>
186+
</section>
175187
</div>
176188
</div>
177189

js-to-ts/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ <h2>Strict Null Checks</h2>
333333
<section>
334334
<pre><code class="typescript" data-trim>
335335
function query(method: 'GET'|'POST'|'PUT') {
336-
// highly suffisticated stuff here...
336+
// highly sophisticated stuff here...
337337
}
338338

339339
query('otto');

ng-components/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ <h3>Import TypeScript sources</h3>
248248
@Component({
249249
standalone: true,
250250
imports: [ProfilePhoto],
251-
template: `<profile-photo />`
251+
template: `&lt;profile-photo /&gt;`
252252
})
253253
export class UserProfile { }
254254
</code></pre>
@@ -269,7 +269,7 @@ <h3>Define a Standalone Component</h3>
269269
@Component({
270270
standalone: true,
271271
imports: [ProfilePhoto],
272-
template: `<profile-photo />`
272+
template: `&lt;profile-photo /&gt;`
273273
})
274274
export class UserProfile { }
275275
</code></pre>
@@ -293,7 +293,7 @@ <h3>Import Standalone Components</h3>
293293
@Component({
294294
standalone: true,
295295
imports: [ProfilePhoto],
296-
template: `<profile-photo />`
296+
template: `&lt;profile-photo /&gt;`
297297
})
298298
export class UserProfile { }
299299
</code></pre>
@@ -514,7 +514,7 @@ <h2>Summary</h2>
514514
<h2>Live Code Examples</h2>
515515
<ul>
516516
<li><a href="https://stackblitz.com/edit/stackblitz-starters-ls7pdf?file=src%2Fbook-details.component.ts" target="_blank">Standalone Component</a> Example in Stackblitz</li>
517-
<li><a href="https://stackblitz.com/edit/stackblitz-starters-ls7pdf?file=src%2Fbook-details.component.ts" target="_blank">Component & Module</a> Example in Stackblitz</li>
517+
<li><a href="https://stackblitz.com/edit/angular-ivy-jmjw6u?file=src%2Fapp%2Fapp.component.ts" target="_blank">Component & Module</a> Example in Stackblitz</li>
518518
</ul>
519519
</section>
520520
<section id="backup" data-visibility="uncounted">

0 commit comments

Comments
 (0)