Skip to content

Commit 166847e

Browse files
committed
TEST: Metadata should be editable in a form rather than in a free text field (see #375).
1 parent e2c6a13 commit 166847e

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

frontend/tests/event.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -190,20 +190,7 @@ Quand("je remplis {string} avec {string}", (field, value) => {
190190
}
191191
});
192192

193-
Quand("je remplis {string} avec {string}", (field, value) => {
194-
const input = cy.get(`#dc_${field}`);
195-
if (field === 'issued') {
196-
const dateValue = value.length === 4 ? `${value}-01-01` : value;
197-
input
198-
.focus()
199-
.clear()
200-
.type(dateValue)
201-
.blur()
202-
.focus();
203-
} else {
204-
input.clear().type(value);
205-
}
206-
});
193+
207194

208195
Quand("j'ajoute le champ {string} au formulaire", (label) => {
209196
cy.get('.add-section-toggle').click();

0 commit comments

Comments
 (0)