mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 22:03:03 -05:00
fix(test): move all test apps
This commit is contained in:
38
apps/testing/harness/src/app/child.component.spec.ts
Normal file
38
apps/testing/harness/src/app/child.component.spec.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { render } from '@testing-library/angular';
|
||||
import { ChildComponent } from './child.component';
|
||||
|
||||
describe('ChildComponent', () => {
|
||||
describe('When init', () => {
|
||||
test('Then show 1 slider, 3 checkboxes, 4 inputs, 2 buttons', async () => {
|
||||
await render(ChildComponent);
|
||||
});
|
||||
|
||||
test('Then initial value of slider thumb is 0', async () => {
|
||||
await render(ChildComponent);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Given maxValue set to 109', () => {
|
||||
test('Then slider max value is 109', async () => {
|
||||
await render(ChildComponent);
|
||||
});
|
||||
});
|
||||
|
||||
describe('When disabled chebkbox is toggle', () => {
|
||||
test('Then slider is disabled', async () => {
|
||||
await render(ChildComponent);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Given step value set to 5, and When clicking on forward button two times', () => {
|
||||
test('Then thumb value is 10', async () => {
|
||||
await render(ChildComponent);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Given slider value set to 5, and step value to 6 and When clicking on back button', () => {
|
||||
test('Then slider value is still 5', async () => {
|
||||
await render(ChildComponent);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user