add UI test for quick selector add step

re #1000
This commit is contained in:
Jeffrey Warren
2019-09-01 16:09:49 -04:00
committed by GitHub
parent 3741d679bd
commit fb452f7788

View File

@@ -39,4 +39,10 @@ describe('Default sequencer HTML', function() {
it('import options from url', function() { it('import options from url', function() {
expect(defaultHtmlSequencerUi.importStepsFromUrlHash).toHaveBeenCalled(); 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);
});
});