Skip to content

Commit

Permalink
Update test matcher for new formula formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoldowsky committed Mar 28, 2024
1 parent d2a767f commit 16e136d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/elements/tile/XYPlotToolTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ class XYPlotToolTile {
getMovableLineEquationSlope(workspaceClass) {
return this.getMovableLineEquationContainer()
.invoke('text')
.then(text => text.match(/= *(\u2212?[0-9.]+)/)[1]) // unicode char is negative sign
.then(text => text.match(/= *([\u2212-]?[0-9.]+)/)[1]) // unicode char is negative sign
.then(str => parseFloat(str.replace('\u2212', '-')));
}
getMovableLineEquationIntercept(workspaceClass) {
return this.getMovableLineEquationContainer()
.invoke('text')
.then(text => text.match(/\+ *(\u2212?[0-9.]+)/)[1]) // unicode char is negative sign
.then(text => text.match(/\+ *([\u2212-]?[0-9.]+)/)[1]) // unicode char is negative sign
.then(str => parseFloat(str.replace('\u2212', '-')));
}
getMovableLineCover(workspaceClass) {
Expand Down

0 comments on commit 16e136d

Please sign in to comment.