Merge pull request #2754 from solgenomics/topic/fix_homepage_add_accessions_dialog
[sgn.git] / js / test / wizard.test.js
blobd89ca32fb4a550b50f50645d4d0134accac99000
1 import test from 'tape';
2 import {Wizard} from "../source/modules/wizard-search.js";
4 test('Wizard', t=>{
5     document.querySelector('body').innerHTML = Wizard.basicTemplate;
6     
7     var wizard;
8     const col_num = 4;
9     
10     t.test("initialize", t=>{
11         t.plan(1);
12         t.doesNotThrow(()=>{
13             wizard = new Wizard(document.querySelector('body .wizard-main'),col_num);
14         });
15     });
16     
17     t.test("layout as expected", t=>{
18         t.plan(1);
19         t.equals(
20             document.querySelectorAll('body .wizard-columns .wizard-column').length,
21             col_num
22         );
23     });
24 });