From 382c030a7c8d8ffed2bd3f2c6717c74f5e7204af Mon Sep 17 00:00:00 2001 From: Florian Giroud <6267288+fgiroud@users.noreply.github.com> Date: Sun, 7 Feb 2021 21:27:12 +0100 Subject: [PATCH] fix: UX tests linting (#3593) --- .../project/grid/column/text_filter.spec.js | 144 +++++++++--------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/main/tests/cypress/cypress/integration/project/grid/column/text_filter.spec.js b/main/tests/cypress/cypress/integration/project/grid/column/text_filter.spec.js index 7a52dc01e..1622bcfde 100644 --- a/main/tests/cypress/cypress/integration/project/grid/column/text_filter.spec.js +++ b/main/tests/cypress/cypress/integration/project/grid/column/text_filter.spec.js @@ -3,80 +3,80 @@ */ describe('Checks Text-filter + Case Sensitive + Regex', () => { - it('Test Exact string, check the number of occurrences', () => { - cy.loadAndVisitProject('food.small') - cy.columnActionClick('Shrt_Desc', ['Text filter']) - cy.get('.input-container > input').should('be.visible').type('CHEESE') - cy.get('#summary-bar > span').should( - 'have.text', - '65 matching rows (199 total)' - ) - }) - it('Test Exact String with case sensitive', () => { - cy.loadAndVisitProject('food.small') - cy.columnActionClick('Shrt_Desc', ['Text filter']) - cy.get('.input-container > input').should('be.visible').type('Cheese') - cy.get('#summary-bar > span').should( - 'have.text', - '65 matching rows (199 total)' - ) - cy.get('#caseSensitiveCheckbox0').should('be.visible').click() - cy.get('#summary-bar > span').should( - 'have.text', - '0 matching rows (199 total)' - ) - }) + it('Test Exact string, check the number of occurrences', () => { + cy.loadAndVisitProject('food.small'); + cy.columnActionClick('Shrt_Desc', ['Text filter']); + cy.get('.input-container > input').should('be.visible').type('CHEESE'); + cy.get('#summary-bar > span').should( + 'have.text', + '65 matching rows (199 total)' + ); + }); + it('Test Exact String with case sensitive', () => { + cy.loadAndVisitProject('food.small'); + cy.columnActionClick('Shrt_Desc', ['Text filter']); + cy.get('.input-container > input').should('be.visible').type('Cheese'); + cy.get('#summary-bar > span').should( + 'have.text', + '65 matching rows (199 total)' + ); + cy.get('#caseSensitiveCheckbox0').should('be.visible').click(); + cy.get('#summary-bar > span').should( + 'have.text', + '0 matching rows (199 total)' + ); + }); - it('Test Partial String with case sensitive', () => { - cy.loadAndVisitProject('food.small') - cy.columnActionClick('Shrt_Desc', ['Text filter']) - cy.get('.input-container > input').should('be.visible').type('CHE') - cy.get('#summary-bar > span').should( - 'have.text', - '70 matching rows (199 total)' - ) - cy.get('#caseSensitiveCheckbox0').click() - cy.get('#summary-bar > span').should( - 'have.text', - '70 matching rows (199 total)' - ) - }) + it('Test Partial String with case sensitive', () => { + cy.loadAndVisitProject('food.small'); + cy.columnActionClick('Shrt_Desc', ['Text filter']); + cy.get('.input-container > input').should('be.visible').type('CHE'); + cy.get('#summary-bar > span').should( + 'have.text', + '70 matching rows (199 total)' + ); + cy.get('#caseSensitiveCheckbox0').click(); + cy.get('#summary-bar > span').should( + 'have.text', + '70 matching rows (199 total)' + ); + }); - it('check Regex option', () => { - cy.loadAndVisitProject('food.small') - cy.columnActionClick('Shrt_Desc', ['Text filter']) - cy.get('.input-container > input').should('be.visible').type('[oO]G') - cy.get('#summary-bar > span').should( - 'have.text', - '0 matching rows (199 total)' - ) - cy.get('#regexCheckbox0').click() - cy.get('#summary-bar > span').should( - 'have.text', - '15 matching rows (199 total)' - ) - }) + it('check Regex option', () => { + cy.loadAndVisitProject('food.small'); + cy.columnActionClick('Shrt_Desc', ['Text filter']); + cy.get('.input-container > input').should('be.visible').type('[oO]G'); + cy.get('#summary-bar > span').should( + 'have.text', + '0 matching rows (199 total)' + ); + cy.get('#regexCheckbox0').click(); + cy.get('#summary-bar > span').should( + 'have.text', + '15 matching rows (199 total)' + ); + }); - it('check Invert option and Reset Option', () => { - cy.loadAndVisitProject('food.small') - cy.columnActionClick('Shrt_Desc', ['Text filter']) - cy.get('.input-container > input').should('be.visible').type('Cheese') - cy.get( - '#facet-0 > div.facet-title.ui-sortable-handle > div > table > tbody > tr > td:nth-child(3) > a:nth-child(2)' - ) - .should('be.visible') - .click() - cy.get('#summary-bar > span').should( - 'have.text', - '134 matching rows (199 total)' - ) + it('check Invert option and Reset Option', () => { + cy.loadAndVisitProject('food.small'); + cy.columnActionClick('Shrt_Desc', ['Text filter']); + cy.get('.input-container > input').should('be.visible').type('Cheese'); + cy.get( + '#facet-0 > div.facet-title.ui-sortable-handle > div > table > tbody > tr > td:nth-child(3) > a:nth-child(2)' + ) + .should('be.visible') + .click(); + cy.get('#summary-bar > span').should( + 'have.text', + '134 matching rows (199 total)' + ); - cy.get( - '#facet-0 > div.facet-title.ui-sortable-handle > div > table > tbody > tr > td:nth-child(3) > a:nth-child(1)' - ) - .should('be.visible') - .click() + cy.get( + '#facet-0 > div.facet-title.ui-sortable-handle > div > table > tbody > tr > td:nth-child(3) > a:nth-child(1)' + ) + .should('be.visible') + .click(); - cy.get('.input-container > input').should('have.value', '') - }) -}) + cy.get('.input-container > input').should('have.value', ''); + }); +});