Skip to content

Commit f8cfdf9

Browse files
pesektomas66Ton99
authored andcommitted
clear tests
1 parent 5cb8265 commit f8cfdf9

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

Tests/app/src/Form/TestForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function buildForm(FormBuilderInterface $builder, array $options)
4242
new Constraints\Choice(['choices' => ['1', '2', '3'], 'message' => 'Please fill field correct value (1,2,3)']),
4343
],
4444
])
45-
/*->add('count', TextType::class, [
45+
->add('count', TextType::class, [
4646
'constraints' => [
4747
new Constraints\Count(['choices' => [1, 2, 3], 'message' => 'Please fill field correct value (1,2,3)']),
4848
],
49-
])*/
49+
])
5050
->add('date', TextType::class, [
5151
'constraints' => [
5252
new Constraints\Date(['message' => 'Please fill valid date']),

cypress/integration/form_spec.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,6 @@ context('JsFormValidatorBundle', () => {
6060
getErrors(fieldId).should('have.length', 0);
6161
});
6262

63-
it('test date time', () => {
64-
it.skip('This test not work!!!');
65-
/*
66-
const fieldId = 'test_form_datetime';
67-
cy.get('#' + fieldId).type('abc').should('have.value', 'abc');
68-
submitForm();
69-
getErrors(fieldId).should('have.length', 1);
70-
cy.get('.form-error-test-form-datetime').contains('Please fill valid date');
71-
72-
cy.get('#' + fieldId).clear().type('2020-01-01 00:00:00').should('have.value', '2020-01-01 00:00:00');
73-
submitForm();
74-
getErrors(fieldId).should('have.length', 0);
75-
*/
76-
});
77-
7863
it('test email', () => {
7964
const fieldId = 'test_form_email';
8065
cy.get('#' + fieldId).type('abc').should('have.value', 'abc');

0 commit comments

Comments
 (0)