Skip to content

Commit

Permalink
Cypress fix for dataset test in layout editor (#2478)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifarzana authored Apr 8, 2024
1 parent 2426c0c commit f57fb2e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cypress/e2e/Layout/Editor/layout_editor_dataset.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,20 @@ describe('Layout Designer', function() {

cy.get('[name="lowerLimit"]').clear().type('1');
cy.get('[name="upperLimit"]').clear().type('10');
cy.get('.order-clause-row > :nth-child(2) > .form-control').select('Text', {force: true});
cy.get('.order-clause-row > :nth-child(2) > .form-control').select('Col1', {force: true});
cy.get('.order-clause-row > .btn').click();
cy.get(':nth-child(2) > :nth-child(2) > .form-control').select('Number', {force: true});
cy.get(':nth-child(2) > :nth-child(2) > .form-control').select('Col2', {force: true});

// -------------
// -------------Appearance Tab
cy.get('.nav-link[href="#appearanceTab"]').click();

// Check if dataset exists exactly two columns
cy.get('#columnsOut')
.find('li')
.should('have.length', 2)

// Select columns available/ move them to columns selected
cy.get('#columnsOut>li:first').should('have.attr', 'id').and('equal', '1');
cy.get('#columnsOut>li:first')
.trigger('mousedown', {
which: 1,
Expand All @@ -85,7 +89,6 @@ describe('Layout Designer', function() {
});
cy.get('#columnsIn').click();

cy.get('#columnsOut>li:first').should('have.attr', 'id').and('equal', '2');
cy.get('#columnsOut>li:first')
.trigger('mousedown', {
which: 1,
Expand Down

0 comments on commit f57fb2e

Please sign in to comment.