Skip to content

Commit

Permalink
Clicking the date input before typing
Browse files Browse the repository at this point in the history
  • Loading branch information
josechirivella committed Jan 3, 2024
1 parent 13a59e7 commit f9afd7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/specs/RecordList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ describe('Record list', () => {
for (let i = 0; i < 9; i++) {
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=add-row]').click();
if (data[i]['date'] !== '') {
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=modal-add] [data-cy="screen-field-date"]').type(data[i]['date']);
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=modal-add] [data-cy="screen-field-date"] input').click().type(data[i]['date']);
}
if (data[i]['name'] !== '') {
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=modal-add] [name=name]').type(data[i]['name']);
Expand Down Expand Up @@ -474,7 +474,7 @@ describe('Record list', () => {
cy.get('[aria-rowindex="5"] > [aria-colindex="2"]').should('contain.text', 'F');
});

it('Check editing records with empty from second page', () => {
it.only('Check editing records with empty from second page', () => {
cy.loadFromJson('record_list_date_input.json', 0);
cy.get('[data-cy=mode-preview]').click();

Expand All @@ -494,7 +494,7 @@ describe('Record list', () => {
for (let i = 0; i < 9; i++) {
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=add-row]').click();
if (data[i]['date'] !== '') {
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=modal-add] [data-cy="screen-field-date"]').type(data[i]['date']);
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=modal-add] [data-cy="screen-field-date"] input').click().type(data[i]['date']);
}
if (data[i]['name'] !== '') {
cy.get('[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=modal-add] [name=name]').type(data[i]['name']);
Expand Down

0 comments on commit f9afd7e

Please sign in to comment.