Skip to content

Commit a3d2fb4

Browse files
committed
Export <Train/>, add id for testing
1 parent eb476d8 commit a3d2fb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/oceans/ui.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ let UnwrappedWords = class Words extends React.Component {
875875
};
876876
export const Words = Radium(UnwrappedWords); // Exported for unit tests.
877877

878-
let Train = class Train extends React.Component {
878+
let UnwrappedTrain = class Train extends React.Component {
879879
state = {
880880
headOpen: false
881881
};
@@ -906,7 +906,7 @@ let Train = class Train extends React.Component {
906906
</div>
907907
<div style={styles.counter}>
908908
<img src={counterIcon} style={styles.counterImg} />
909-
<span style={styles.counterNum}>
909+
<span style={styles.counterNum} id="uitest-train-count">
910910
{Math.min(999, state.yesCount + state.noCount)}
911911
</span>
912912
</div>
@@ -958,7 +958,7 @@ let Train = class Train extends React.Component {
958958
);
959959
}
960960
};
961-
Train = Radium(Train);
961+
export const Train = Radium(UnwrappedTrain); // Exported for unit tests.
962962

963963
const defaultTimeScale = 1;
964964
const timeScales = [1, 2];

0 commit comments

Comments
 (0)