Wizard - Color Scheme Step

This commit is contained in:
Robin Ward
2016-09-02 11:42:14 -04:00
parent 9f12b571ef
commit 3f6e3b9aff
21 changed files with 343 additions and 23 deletions

View File

@@ -8,7 +8,7 @@ test("Wizard starts", assert => {
});
});
test("Forum Name Step", assert => {
test("Going back and forth in steps", assert => {
visit("/step/hello-world");
andThen(() => {
assert.ok(exists('.wizard-step'));
@@ -44,7 +44,10 @@ test("Forum Name Step", assert => {
assert.ok(!exists('.wizard-field .field-error-description'));
assert.ok(!exists('.wizard-step-title'));
assert.ok(!exists('.wizard-step-description'));
assert.ok(exists('input.field-email'), "went to the next step");
assert.ok(exists('select.field-snack'), "went to the next step");
assert.ok(exists('.preview-area'), "renders the component field");
assert.ok(!exists('.wizard-btn.next'));
assert.ok(exists('.wizard-btn.done'), 'last step shows a done button');
assert.ok(exists('.wizard-btn.back'), 'shows the back button');

View File

@@ -10,6 +10,7 @@
//= require ember-qunit
//= require ember-shim
//= require wizard-application
//= require wizard-vendor
//= require helpers/assertions
//= require_tree ./acceptance
//= require_tree ./models

View File

@@ -49,7 +49,10 @@ export default function() {
{
id: 'second-step',
index: 1,
fields: [{ id: 'email', type: 'text', required: true }],
fields: [
{ id: 'snack', type: 'dropdown', required: true },
{ id: 'scheme-preview', type: 'component' }
],
previous: 'hello-world'
}]
}