Scaffold: Fix tests losing defer: true on update

This commit is contained in:
Abe Jellinek 2024-01-31 14:30:34 -05:00
parent 7944253bed
commit 0e251b4975

View file

@ -2076,8 +2076,13 @@ var Scaffold = new function () {
translate.setHandler("debug", _debug);
translate.setHandler("error", _error);
translate.setHandler("newTestDetectionFailed", _confirmCreateExpectedFailTest);
let newTest = await translate.newTest();
newTest = _sanitizeItemsInTest(newTest);
if (test.defer) {
newTest.defer = true;
}
this.newTests.push(newTest);
this.testDoneCallback(newTest);
this._updateTests();