react-mutation-mapper 0.8.72 → 0.8.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ export declare type BadgeLabelProps = {
6
6
  badgeStyleOverride?: CSSProperties;
7
7
  badgeClassName?: string;
8
8
  badgeFirst?: boolean;
9
+ value?: string;
9
10
  };
10
11
  export declare const DEFAULT_BADGE_STYLE: {
11
12
  color: string;
package/dist/index.es.js CHANGED
@@ -1856,7 +1856,7 @@ var BadgeLabel = /** @class */ (function (_super) {
1856
1856
  return (React.createElement("span", { style: this.props.badgeFirst
1857
1857
  ? { marginRight: 5 }
1858
1858
  : { marginLeft: 5 } },
1859
- React.createElement("span", { className: this.props.badgeClassName, style: __assign(__assign({}, DEFAULT_BADGE_STYLE), this.props.badgeStyleOverride) }, this.props.badgeContent)));
1859
+ React.createElement("span", { className: this.props.badgeClassName, "data-test": "badge-" + this.props.value, style: __assign(__assign({}, DEFAULT_BADGE_STYLE), this.props.badgeStyleOverride) }, this.props.badgeContent)));
1860
1860
  },
1861
1861
  enumerable: false,
1862
1862
  configurable: true
@@ -2287,7 +2287,7 @@ function getProteinImpactTypeOptionLabel(option) {
2287
2287
  return React.createElement("span", null, option.label || option.value);
2288
2288
  }
2289
2289
  function getProteinImpactTypeBadgeLabel(option, selectedValues, badgeClassName, badgeAlignmentStyle) {
2290
- return (React.createElement(BadgeLabel, { label: option.label || option.value, badgeContent: option.badgeContent, badgeStyleOverride: getBadgeStyleOverride(option, selectedValues, badgeAlignmentStyle), badgeClassName: badgeClassName, badgeFirst: true }));
2290
+ return (React.createElement(BadgeLabel, { label: option.label || option.value, badgeContent: option.badgeContent, badgeStyleOverride: getBadgeStyleOverride(option, selectedValues, badgeAlignmentStyle), badgeClassName: badgeClassName, badgeFirst: true, value: option.value }));
2291
2291
  }
2292
2292
  var ProteinImpactTypeBadgeSelector = /** @class */ (function (_super) {
2293
2293
  __extends(ProteinImpactTypeBadgeSelector, _super);
@@ -2498,7 +2498,7 @@ var FilterResetPanel = /** @class */ (function (_super) {
2498
2498
  configurable: true,
2499
2499
  writable: true,
2500
2500
  value: function () {
2501
- return (React.createElement("div", { className: this.props.className },
2501
+ return (React.createElement("div", { className: this.props.className, "data-test": "filter-reset-panel" },
2502
2502
  React.createElement("span", { style: { verticalAlign: 'middle' } },
2503
2503
  this.props.filterInfo,
2504
2504
  React.createElement("button", { className: this.props.buttonClass, style: { cursor: 'pointer', marginLeft: 6 }, onClick: this.props.resetFilters }, this.props.buttonText))));
@@ -2509,7 +2509,7 @@ var FilterResetPanel = /** @class */ (function (_super) {
2509
2509
  configurable: true,
2510
2510
  writable: true,
2511
2511
  value: {
2512
- buttonText: 'Show all',
2512
+ buttonText: 'Remove filter',
2513
2513
  buttonClass: classNames('btn', 'btn-secondary', 'btn-sm'),
2514
2514
  className: classNames('alert', 'alert-success', styles$7.filterResetPanel),
2515
2515
  }
@@ -4331,7 +4331,7 @@ var TrackSelector = /** @class */ (function (_super) {
4331
4331
  var _a;
4332
4332
  return _a = {},
4333
4333
  _a[TrackName.CancerHotspots] = {
4334
- label: (React.createElement("span", null,
4334
+ label: (React.createElement("span", { "data-test": "CancerHotspots" },
4335
4335
  "Cancer Hotspots",
4336
4336
  this.isPending(TrackName.CancerHotspots) &&
4337
4337
  this.loaderIcon())),
@@ -5802,7 +5802,7 @@ var AxisScaleSwitch = /** @class */ (function (_super) {
5802
5802
  return (React.createElement("button", { className: classNames({
5803
5803
  'btn-secondary': this.props.selectedScale === scale,
5804
5804
  'btn-outline-secondary': this.props.selectedScale !== scale,
5805
- }, 'btn', 'btn-sm', 'btn-axis-switch'), style: {
5805
+ }, 'btn', 'btn-sm', 'btn-axis-switch'), "data-test": "AxisScaleSwitch" + scale, style: {
5806
5806
  lineHeight: 1,
5807
5807
  cursor: this.props.selectedScale === scale
5808
5808
  ? 'default'
@@ -7818,7 +7818,7 @@ var TrackPanel = /** @class */ (function (_super) {
7818
7818
  overflowY: 'hidden',
7819
7819
  maxHeight: this.props.maxHeight,
7820
7820
  position: 'relative',
7821
- } }, this.props
7821
+ }, "data-test": "AnnotationTracks" }, this.props
7822
7822
  .tracks.map(function (t) { return _this.availableTracks[t]; })
7823
7823
  .filter(function (e) { return e !== undefined && e !== null; })));
7824
7824
  }
@@ -8040,7 +8040,7 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
8040
8040
  count,
8041
8041
  " mutation", "" + (count !== 1 ? 's' : '')));
8042
8042
  var label = lollipopLabelText(mutationsAtPosition);
8043
- return (React.createElement("div", null,
8043
+ return (React.createElement("div", { "data-test": "tooltip-" + codon + (group ? "-" + group : '') },
8044
8044
  countInfo,
8045
8045
  React.createElement("br", null),
8046
8046
  React.createElement("span", null,