-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6108 from wenzhixin/develop
v1.20.0
- Loading branch information
Showing
259 changed files
with
55,386 additions
and
24,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = (theme = '') => { | ||
const baseUrl = require('../../common/utils')(theme, 'for-tests/extensions/filter-control') | ||
|
||
describe('Test basic filter control', () => { | ||
it('Test basic filter control', () => { | ||
cy.visit(`${baseUrl}filter-control.html`) | ||
.get('.table > thead > tr > th > .fht-cell > .filter-control') | ||
.its('length') | ||
.should('be.gte', 1) | ||
}) | ||
|
||
it('Test if filter control visible is set to false, controls shouldnt be visible.', () => { | ||
cy.visit(`${baseUrl}filter-control-filterControlVisible.html`) | ||
.get('.table > thead > tr > th > .fht-cell > .filter-control') | ||
.invoke('attr', 'style') | ||
.should('eq', 'display: none;') | ||
}) | ||
|
||
it('Test if filter control searchOnEnteyKey is set to true. Type "cypress" and validate table should not perform any action.', () => { | ||
cy.visit(`${baseUrl}filter-control-searchOnEnterKey.html`) | ||
.wait(1000) | ||
.get('.table > thead > tr > th > .fht-cell > .filter-control') | ||
.find('input') | ||
.type('cypress') | ||
.get('.table > tbody > tr') | ||
.its('length') | ||
.should('eq', 21) | ||
}) | ||
|
||
it('Test if filter control searchOnEnteyKey is set to true. Type "Item 0", hit enter and validate table should perform search action.', () => { | ||
cy.visit(`${baseUrl}filter-control-searchOnEnterKey.html`) | ||
.wait(1000) | ||
.get('.table > thead > tr > th > .fht-cell > .filter-control') | ||
.find('input') | ||
.type('Item 0') | ||
.type('{enter}') | ||
.wait(1000) | ||
.get('.table > tbody > tr') | ||
.its('length') | ||
.should('eq', 1) | ||
}) | ||
}) | ||
} | ||
|
1 change: 1 addition & 0 deletions
1
cypress/integration/extensions/filter-control/options/bootstrap3.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('../../../../extensions/filter-control/options')('bootstrap3') |
1 change: 1 addition & 0 deletions
1
cypress/integration/extensions/filter-control/options/bootstrap5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('../../../../extensions/filter-control/options')('bootstrap5') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('../../../../extensions/filter-control/options')('bulma') |
1 change: 1 addition & 0 deletions
1
cypress/integration/extensions/filter-control/options/foundation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('../../../../extensions/filter-control/options')('foundation') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('../../../../extensions/filter-control/options')() |
1 change: 1 addition & 0 deletions
1
cypress/integration/extensions/filter-control/options/materialize.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('../../../../extensions/filter-control/options')('materialize') |
1 change: 1 addition & 0 deletions
1
cypress/integration/extensions/filter-control/options/semantic.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('../../../../extensions/filter-control/options')('semantic') |
Oops, something went wrong.