Scaffold: Fix tests losing defer: true on update
This commit is contained in:
parent
7944253bed
commit
0e251b4975
1 changed files with 5 additions and 0 deletions
|
@ -2076,8 +2076,13 @@ var Scaffold = new function () {
|
||||||
translate.setHandler("debug", _debug);
|
translate.setHandler("debug", _debug);
|
||||||
translate.setHandler("error", _error);
|
translate.setHandler("error", _error);
|
||||||
translate.setHandler("newTestDetectionFailed", _confirmCreateExpectedFailTest);
|
translate.setHandler("newTestDetectionFailed", _confirmCreateExpectedFailTest);
|
||||||
|
|
||||||
let newTest = await translate.newTest();
|
let newTest = await translate.newTest();
|
||||||
newTest = _sanitizeItemsInTest(newTest);
|
newTest = _sanitizeItemsInTest(newTest);
|
||||||
|
if (test.defer) {
|
||||||
|
newTest.defer = true;
|
||||||
|
}
|
||||||
|
|
||||||
this.newTests.push(newTest);
|
this.newTests.push(newTest);
|
||||||
this.testDoneCallback(newTest);
|
this.testDoneCallback(newTest);
|
||||||
this._updateTests();
|
this._updateTests();
|
||||||
|
|
Loading…
Reference in a new issue