mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Wizard - Color Scheme Step
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user