diff --git a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap b/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap
index f74f258b..67b743ce 100644
--- a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap
+++ b/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap
@@ -13,3 +13,11 @@ Array [
"
",
]
`;
+
+exports[`annotations truncate midpoint whitespace 1`] = `"123 456 456"`;
+
+exports[`annotations truncate midpoint whitespace 2`] = `"123 456 456"`;
+
+exports[`annotations truncate single character 1`] = `"T"`;
+
+exports[`annotations truncate single character 2`] = `"T"`;
diff --git a/client/__tests__/e2e/e2eAnnotations.test.js b/client/__tests__/e2e/e2eAnnotations.test.js
index e284845c..e998da6b 100644
--- a/client/__tests__/e2e/e2eAnnotations.test.js
+++ b/client/__tests__/e2e/e2eAnnotations.test.js
@@ -297,6 +297,28 @@ describe.each([
expect(result).toMatchSnapshot();
});
+ test("truncate midpoint whitespace", async () => {
+ await setup(config);
+ const newLabelName = "123 456";
+ await renameLabel(perTestCategoryName, perTestLabelName, newLabelName);
+ const value = await waitByID(
+ `categorical-value-${perTestCategoryName}-${newLabelName}`
+ );
+ const result = await page.evaluate((elem) => elem.outerHTML, value);
+ expect(result).toMatchSnapshot();
+ });
+
+ test("truncate single character", async () => {
+ await setup(config);
+ const newLabelName = "T";
+ await renameLabel(perTestCategoryName, perTestLabelName, newLabelName);
+ const value = await waitByID(
+ `categorical-value-${perTestCategoryName}-${newLabelName}`
+ );
+ const result = await page.evaluate((elem) => elem.outerHTML, value);
+ expect(result).toMatchSnapshot();
+ });
+
async function assertCategoryExists(categoryName) {
const handle = await waitByID(`${categoryName}:category-label`);