Skip to content

Commit

Permalink
add UI test for quick selector add step
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Sep 1, 2019
1 parent 3741d67 commit fb452f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/ui/spec/defaultHtmlSequencerUi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ describe('Default sequencer HTML', function() {
it('import options from url', function() {
expect(defaultHtmlSequencerUi.importStepsFromUrlHash).toHaveBeenCalled();
});
});

it('adds a step from the quick selector', function() {
expect($('.step').length).toBe(1);
$("[data-value='brightness']").click()
expect($('.step').length).toBe(2);
});
});

0 comments on commit fb452f7

Please sign in to comment.