villebro commented on a change in pull request #12605:
URL: https://github.com/apache/superset/pull/12605#discussion_r563079014



##########
File path: 
superset-frontend/cypress-base/cypress/integration/dashboard/tabs.test.js
##########
@@ -164,67 +132,56 @@ describe('Dashboard tabs', () => {
     cy.wait('@treemapRequest');
 
     // apply filter
-    cy.get('.Select__control').first().should('be.visible');
-    cy.get('.Select__control').first().click({ force: true });
+    cy.get('.Select__control').first().should('be.visible').click();
     cy.get('.Select__control input[type=text]')
       .first()
-      .should('be.visible')
-      .type('South Asia{enter}', { force: true });
+      .focus()
+      .type('South Asia{enter}');
+    cy.get('.filter_box button:not(:disabled)').contains('Apply').click();
 
     // send new query from same tab
-    cy.wait('@treemapRequest').then(xhr => {
-      const requestFormData = xhr.request.body;
-      const requestParams = JSON.parse(requestFormData.get('form_data'));
+    cy.wait('@treemapRequest').then(({ request }) => {
+      const requestBody = parsePostForm(request.body);
+      const requestParams = JSON.parse(requestBody.form_data);
       expect(requestParams.extra_filters[0]).deep.eq({
         col: 'region',
-        op: 'IN',
-        val: ['South Asia'],
+        op: '==',
+        val: 'South Asia',

Review comment:
       I'm surprised this (and the others below) even worked before?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to