mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
Fix OL list items not increasing (#4749)
* tests: additional test coverage for OL items * parseInt means we can do a proper check * tests: use ol check value test for #4748
This commit is contained in:
parent
60a55ec428
commit
cc7f11560f
2 changed files with 16 additions and 1 deletions
|
@ -108,6 +108,21 @@ describe('ordered_list.js', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('issue #4748 keeps numbers increment on OL', function (done) {
|
||||
this.timeout(5000);
|
||||
const inner$ = helper.padInner$;
|
||||
const chrome$ = helper.padChrome$;
|
||||
const $insertorderedlistButton = chrome$('.buttonicon-insertorderedlist');
|
||||
const $firstLine = inner$('div').first();
|
||||
$firstLine.sendkeys('{selectall}');
|
||||
$insertorderedlistButton.click();
|
||||
const $secondLine = inner$('div').first().next();
|
||||
$secondLine.sendkeys('{selectall}');
|
||||
$insertorderedlistButton.click();
|
||||
expect($secondLine.find('ol').attr('start') === 2);
|
||||
done();
|
||||
});
|
||||
|
||||
xit('issue #1125 keeps the numbered list on enter for the new line', function (done) {
|
||||
// EMULATES PASTING INTO A PAD
|
||||
const inner$ = helper.padInner$;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue