Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(view): the field scan allows the clipboard fallback that copies and removes itself [N27]

Corey Olson9c434c8e3443
diff --git a/test/e2e-view.test.js b/test/e2e-view.test.js
index f41ea6f4..60542ce5 100644
--- a/test/e2e-view.test.js
+++ b/test/e2e-view.test.js
@@ -316,7 +316,10 @@ test('nothing a person types on the view sits inside what the refresh rewrites [
const opening = new RegExp(`id="${id}"[^>]*>([^]*?)</`).exec(page);
assert.doesNotMatch(opening ? opening[1] : '', /<(input|textarea|form)/, `#${id} starts with no form`);
}
- assert.doesNotMatch(page.slice(page.indexOf('<script>')), /<input|<textarea|createElement\('(form|input|textarea)'\)/, 'the script never builds a field a refresh could erase');
+ // copyWords' clipboard fallback (#764) creates a read-only field, selects it and removes it in the same call, so it
+ // never holds anything a person typed; every other field the script could build is still refused.
+ const script = page.slice(page.indexOf('<script>')).replace(/\nasync function copyWords\([^]*?\n}\n/, '\n');
+ assert.doesNotMatch(script, /<input|<textarea|createElement\('(form|input|textarea)'\)/, 'the script never builds a field a refresh could erase');
});
test('the view keeps the board layout people know: switcher, tabs, a list and its detail, every verdict and the history [N26, N27]', async () => {