mirror of
https://github.com/publiclab/image-sequencer.git
synced 2026-01-06 23:45:27 +01:00
Update defaultHtmlSequencerUi.spec.js
This commit is contained in:
@@ -4,10 +4,6 @@ describe('Default sequencer HTML', function() {
|
||||
var sequencer = require('../../../src/ImageSequencer')();
|
||||
var defaultHtmlSequencerUi;
|
||||
|
||||
beforeAll(function() {
|
||||
fixture = loadFixtures('index.html');
|
||||
});
|
||||
|
||||
beforeEach(()=>{
|
||||
defaultHtmlSequencerUi = new DefaultHtmlSequencerUi(sequencer);
|
||||
|
||||
@@ -44,16 +40,4 @@ describe('Default sequencer HTML', function() {
|
||||
expect(defaultHtmlSequencerUi.importStepsFromUrlHash).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('adds a step from the quick selector', function() {
|
||||
expect($('.step').length).toBe(1);
|
||||
expect($('.step:first img'))[0].src).not.toBeUndefined();
|
||||
expect($('.step:first img'))[0].src).not.toBe('');
|
||||
// needs more setup
|
||||
$("[data-value='brightness']").click()
|
||||
expect($('.step').length).toBe(2);
|
||||
expect($('.step:last img'))[0].src).not.toBeUndefined();
|
||||
expect($('.step:last img'))[0].src).not.toBe('');
|
||||
expect($('.step:last img'))[0].src).not.toEqualTo($('.step:first img')[0].src);
|
||||
// TODO: test the actual `src` attribute of $('.step:last img') against a known value
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user