Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress: Fix Stuck E2E test - create_query_spec #3748

Merged
merged 2 commits into from
Apr 30, 2019

Conversation

gabrieldutra
Copy link
Member

What type of PR is this? (check all applicable)

  • Other

Description

After a bug that could be avoided by Percy (#3744) I took a time to investigate #3688. It turns out this was getting stuck due to the onbeforeunload confirm dialog 馃槳.

This fix is a workaround for cypress-io/cypress#2118

Related Tickets & Documents

Closes #3688

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

--

@gabrieldutra gabrieldutra self-assigned this Apr 30, 2019
@ranbena
Copy link
Contributor

ranbena commented Apr 30, 2019

@gabrieldutra is this relevant cause the query is left unsaved?

@gabrieldutra
Copy link
Member Author

@gabrieldutra is this relevant cause the query is left unsaved?

I did think about saving the query instead, though I considered having a clean state afterwards. However from a second thought, it can be interesting to turn it into a "executes and saves a query" 馃. I will change it here.

@ranbena
Copy link
Contributor

ranbena commented Apr 30, 2019

I considered having a clean state afterwards.

Better to make sure tests are absolutely independent.

it can be interesting to turn it into a "executes and saves a query" 馃. I will change it here.

Perfecto.
Too bad cy.route() doesn't work with redirects 馃槖

@gabrieldutra gabrieldutra merged commit 47cd05b into master Apr 30, 2019
@gabrieldutra
Copy link
Member Author

Better to make sure tests are absolutely independent.

Yep, but so far there are no apparent issues for Query pages :)

We should probably create a few more tests prior to the Query Page migration, so until then we can stand with this.

@gabrieldutra gabrieldutra deleted the fix-create-query-spec branch April 30, 2019 17:21
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stuck E2E test - create_query_spec
2 participants