mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 05:13:02 -05:00
20 lines
528 B
TypeScript
20 lines
528 B
TypeScript
import { AppComponent } from './app.component';
|
|
|
|
describe(AppComponent.name, () => {
|
|
const setup = () => {
|
|
cy.mount(AppComponent);
|
|
};
|
|
|
|
test('error modal is displayed if you click on "Confirm" without inputing a name', () => {
|
|
setup();
|
|
});
|
|
|
|
test('error message is shown if you click "Cancel" in the confirmation modal after submitting a name', () => {
|
|
setup();
|
|
});
|
|
|
|
test('confirm message is shown if you click "Confirm" in the confirmation modal after submitting a name', () => {
|
|
setup();
|
|
});
|
|
});
|