Uncomment (and improve) test for field mode

We're now ready to start working on making this test pass. (There was
also one small mistake in the test, which this commit corrects).
This commit is contained in:
Robin Munn 2022-03-25 10:32:19 +07:00
parent b1a2939ad7
commit a417e9aa59

View file

@ -840,12 +840,12 @@ describe("Widget module", function() {
expectedChange: { "TiddlerOne": { expand: undefined } }
},
// Fails because checkbox logic can't handle this case. Will fix.
// {
// testName: "field mode unchecked",
// widgetText: "<$checkbox tiddler='TiddlerTwo' field='expand' unchecked='no' />",
// startsOutChecked: false,
// expectedChange: { "TiddlerTwo": { expand: "yes" } }
// },
{
testName: "field mode unchecked",
widgetText: "<$checkbox tiddler='TiddlerTwo' field='expand' unchecked='no' />",
startsOutChecked: false,
expectedChange: { "TiddlerTwo": { expand: undefined } }
},
{
testName: "field mode toggle",
widgetText: "<$checkbox tiddler='TiddlerTwo' field='expand' checked='yes' unchecked='no' />",