mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
parent
49ec13c68c
commit
d543ca87fb
@ -70,11 +70,7 @@ describe('Dashboard filter', () => {
|
|||||||
cy.get('.Select__placeholder:first').click();
|
cy.get('.Select__placeholder:first').click();
|
||||||
|
|
||||||
// should open the filter indicator
|
// should open the filter indicator
|
||||||
cy.get('svg[data-test="filter"]')
|
cy.get('svg[data-test="filter"]').should('be.visible');
|
||||||
.should('be.visible')
|
|
||||||
.should(nodes => {
|
|
||||||
expect(nodes).to.have.length(9);
|
|
||||||
});
|
|
||||||
|
|
||||||
cy.get('.Select__control:first input[type=text]').type('So', {
|
cy.get('.Select__control:first input[type=text]').type('So', {
|
||||||
force: true,
|
force: true,
|
||||||
@ -83,6 +79,12 @@ describe('Dashboard filter', () => {
|
|||||||
|
|
||||||
cy.get('.Select__menu').first().contains('South Asia').click();
|
cy.get('.Select__menu').first().contains('South Asia').click();
|
||||||
|
|
||||||
|
// should still have all filter indicators
|
||||||
|
// and since the select is closed, all filter indicators should be visible
|
||||||
|
cy.get('svg[data-test="filter"]:visible').should(nodes => {
|
||||||
|
expect(nodes).to.have.length(9);
|
||||||
|
});
|
||||||
|
|
||||||
cy.get('.filter_box button').click({ force: true });
|
cy.get('.filter_box button').click({ force: true });
|
||||||
cy.wait(aliases.filter(x => x !== getAlias(filterId))).then(requests => {
|
cy.wait(aliases.filter(x => x !== getAlias(filterId))).then(requests => {
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
|
Loading…
Reference in New Issue
Block a user