fix: refs #8372 row selection for editing
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
8101e014f5
commit
c3fb92e26d
|
@ -10,22 +10,22 @@ describe('Route', () => {
|
|||
|
||||
it('Route list create route', () => {
|
||||
cy.addBtnClick();
|
||||
cy.get('input[name="description"]').type('routeTestOne{enter}');
|
||||
cy.get('input[name="description"]').type('first mock{enter}');
|
||||
cy.get('.q-notification__message').should('have.text', 'Data created');
|
||||
cy.url().should('include', '/summary');
|
||||
});
|
||||
|
||||
it('Route list search and edit', () => {
|
||||
cy.get('#searchbar input').type('{enter}');
|
||||
cy.get('input[name="description"]').type('routeTestOne{enter}');
|
||||
cy.get('input[name="description"]').type('first{enter}');
|
||||
cy.get('.q-table tr')
|
||||
.its('length')
|
||||
.then((rowCount) => {
|
||||
expect(rowCount).to.be.greaterThan(0);
|
||||
});
|
||||
cy.get(getRowColumn(1, 3) + getVnSelect).type('{downArrow}{enter}');
|
||||
cy.get(getRowColumn(1, 4) + getVnSelect).type('{downArrow}{enter}');
|
||||
cy.get(getRowColumn(1, 5) + getVnSelect).type('{downArrow}{enter}');
|
||||
cy.get(getRowColumn(2, 3) + getVnSelect).type('{downArrow}{enter}');
|
||||
cy.get(getRowColumn(2, 4) + getVnSelect).type('{downArrow}{enter}');
|
||||
cy.get(getRowColumn(2, 5) + getVnSelect).type('{downArrow}{enter}');
|
||||
cy.get('button[title="Save"]').click();
|
||||
cy.get('.q-notification__message').should('have.text', 'Data saved');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue