From 0e251b49752c01e412a5ed8ffca71f3b02a3a191 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 31 Jan 2024 14:30:34 -0500 Subject: [PATCH] Scaffold: Fix tests losing defer: true on update --- chrome/content/scaffold/scaffold.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/scaffold/scaffold.js b/chrome/content/scaffold/scaffold.js index 07c88a311a..9013728f1a 100644 --- a/chrome/content/scaffold/scaffold.js +++ b/chrome/content/scaffold/scaffold.js @@ -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();