-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
806 additions
and
620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,9 @@ jobs: | |
# https://github.com/cypress-io/github-action/issues/48 | ||
fail-fast: false | ||
steps: | ||
- uses: browser-actions/setup-chrome@v1 | ||
with: | ||
chrome-version: stable | ||
- uses: snow-actions/[email protected] | ||
with: | ||
patterns: v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"buildNumber":2000} | ||
{"buildNumber":2012} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
import { FormulaHelper as fh } from "../../support/helpers/formula-helper" | ||
import { TableTileElements as table } from "../../support/elements/table-tile" | ||
|
||
context("Formula Engine", () => { | ||
describe("Errors Formula Tests", () => { | ||
it("Check invalid functions", () => { | ||
fh.visitURL("?sample=four") | ||
fh.addNewAttribute() | ||
fh.renameAttribute("newAttr", "Formula") | ||
fh.addFormula("Formula", "count(aaa)") | ||
fh.verifyValues("Formula", [ | ||
table.addNewAttribute() | ||
table.renameAttribute("newAttr", "Formula") | ||
table.addFormula("Formula", "count(aaa)") | ||
table.verifyFormulaValues("Formula", [ | ||
"❌ Undefined symbol aaa", | ||
"❌ Undefined symbol aaa", | ||
"❌ Undefined symbol aaa", | ||
"❌ Undefined symbol aaa", | ||
"❌ Undefined symbol aaa" | ||
]) | ||
fh.editFormula("Formula", "c(aaa)") | ||
fh.verifyValues("Formula", [ | ||
table.editFormula("Formula", "c(aaa)") | ||
table.verifyFormulaValues("Formula", [ | ||
"❌ Undefined function c", | ||
"❌ Undefined function c", | ||
"❌ Undefined function c", | ||
"❌ Undefined function c", | ||
"❌ Undefined function c" | ||
]) | ||
// need to add {del} because CodeMirror auto-matches parentheses | ||
fh.editFormula("Formula", "count(a{del}") | ||
fh.verifyValues("Formula", [ | ||
table.editFormula("Formula", "count(a{del}") | ||
table.verifyFormulaValues("Formula", [ | ||
"❌ Syntax error: 'Parenthesis ) expected (char 8)'", | ||
"❌ Syntax error: 'Parenthesis ) expected (char 8)'", | ||
"❌ Syntax error: 'Parenthesis ) expected (char 8)'", | ||
"❌ Syntax error: 'Parenthesis ) expected (char 8)'", | ||
"❌ Syntax error: 'Parenthesis ) expected (char 8)'" | ||
]) | ||
fh.editFormula("Formula", "count(a)") | ||
fh.verifyValues("Formula", [4, 4, 4, 4, 4]) | ||
table.editFormula("Formula", "count(a)") | ||
table.verifyFormulaValues("Formula", [4, 4, 4, 4, 4]) | ||
}) | ||
}) | ||
}) |
Oops, something went wrong.