From 6f856fdece9a4907f7e9a1993f873fb01cef1810 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 10 May 2022 10:33:27 +0100 Subject: [PATCH] Make terminology around visually hidden prefix clearer and more consistent Co-authored-by: Ben Thorner --- tests/javascripts/copyToClipboard.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/javascripts/copyToClipboard.test.js b/tests/javascripts/copyToClipboard.test.js index d2f984566..6511aa6d5 100644 --- a/tests/javascripts/copyToClipboard.test.js +++ b/tests/javascripts/copyToClipboard.test.js @@ -348,10 +348,10 @@ describe('copy to clipboard', () => { }); - test("the copied selection (range) should start after the prefix of the id", () => { + test("the copied selection (range) should start after visually hidden prefix", () => { // that selection (a range) should have a startOffset of 1: - // index 0: the prefix node + // index 0: the visually hidden prefix node, for example "Template ID: " or "API key: " // index 1: the value node expect(rangeMock.setStart).toHaveBeenCalled(); expect(rangeMock.setStart.mock.calls[0][1]).toEqual(1);