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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress tests for controls and explore links #6069

Merged
merged 2 commits into from
Oct 11, 2018

Conversation

michellethomas
Copy link
Contributor

@michellethomas michellethomas commented Oct 10, 2018

Adding some tests to set and alter some of the more complex controls, as well as, adding tests for links on explore.

@kristw @graceguo-supercat

@@ -63,6 +65,7 @@ export default class ControlHeader extends React.Component {
return (
<div
className="ControlHeader"
data-test={`${this.props.name}-header`}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this for annotations because I couldn't find another way to distinguish the controls in annotations from one another. The rest of controls use the Controls component (which has data-test already set) but annotations just use the controls themselves. If anyone is familiar with annotations and has another idea for identifying the controls let me know.

Copy link
Contributor

@kristw kristw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits but overall LGTM

@@ -188,6 +188,7 @@ class SaveModal extends React.Component {
disabled={canNotSaveToDash}
checked={this.state.addToDash === 'existing'}
onChange={this.changeDash.bind(this, 'existing')}
data-test="add_to_existing_dashboard"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be dash - instead of underscore _?

@@ -206,6 +207,7 @@ class SaveModal extends React.Component {
checked={this.state.addToDash === 'new'}
onChange={this.changeDash.bind(this, 'new')}
disabled={canNotSaveToDash}
data-test="add_to_new_dashboard"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be dash - instead of underscore _?

.first()
.invoke('text')
.then((text) => {
cy.visit(text);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

cy.get('.select.save-modal-selector').click().within(() => {
cy.get('input').type(dashboardTitle, { force: true });
cy.get('.select-option.is-focused')
.trigger('mousedown');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

@codecov-io
Copy link

Codecov Report

Merging #6069 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6069   +/-   ##
=======================================
  Coverage   77.55%   77.55%           
=======================================
  Files          47       47           
  Lines        9485     9485           
=======================================
  Hits         7356     7356           
  Misses       2129     2129

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0f685b...59400c5. Read the comment docs.

@graceguo-supercat graceguo-supercat merged commit b7d5554 into apache:master Oct 11, 2018
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
* Adding tests for controls

* Adding tests for explore links
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants