Shows how to model different UI patterns in JSON:
-
String
- Text
- Password
- Textarea
- Markdown
- Html
- Datepicker
- Url
- Redirect
-
Number
- Integer
- Decimal
- Button
- Map
-
Boolean
- Checkbox
- Button
- Togglebutton
-
Array
- Radio
- Dropdown
- Radiolist
- Multiselect
- Table
- Chart
Intended for 13 October 2015 webinar: http://starcounter.io/video-expressing-your-ui-in-json-plain-data-binding-advanced-data-binding/
From:
<input type="text" value="{{model.Name$::change}}" placeholder="Name">
To:
<input type="text" value="{{model.Name$::input}}" placeholder="Name">
Before running the steps, you need to:
- Download and install Visual Studio 2015 to run the tests
- Download and install Java, required by Selenium Standalone Server
- Download Selenium Standalone Server and the drivers (Edge and Chrome) using the instructions at http://starcounter.io/guides/web/acceptance-testing-with-selenium/#install-selenium-standalone-server-and-browser-drivers
- Start Selenium Remote Driver:
java -jar selenium-server-standalone-2.52.0.jar
- Open
KitchenSink.sln
in Visual Studio and enable Test Explorer (Test > Window > Test Explorer) - Start the KitchenSink app
- Press "Run all" in Test Explorer
- If you get an error about some packages not installed, right click on the project in Solution Explorer. Choose "Manage NuGet Packages" and click on "Restore".
- Don't touch your keyboard or mouse while the tests are being executed :)
- Start Selenium Remote Driver:
java -jar selenium-server-standalone-2.52.0.jar
- Go to the solution folder and run
nuget restore
to make sure you have the test dependencies (listed intest\KitchenSink.Tests\packages.config
)
- if you don't have
nuget.exe
, get it from here
- Build the solution ('msbuild KitchenSink.sln')
- Start the KitchenSink app (
run.bat
) - Start the KitchenSink.Test runner (
test.bat
) - Don't touch your keyboard or mouse while the tests are being executed :)
MIT