diff --git a/src/test/e2e/api/admin/tags.e2e.test.ts b/src/test/e2e/api/admin/tags.e2e.test.ts index db17cfe42e..a98b95e206 100644 --- a/src/test/e2e/api/admin/tags.e2e.test.ts +++ b/src/test/e2e/api/admin/tags.e2e.test.ts @@ -209,3 +209,10 @@ test('Can bulk remove tags', async () => { }) .expect(200); }); + +test('backward compatibility: the API should return invalid tag names if they exist', async () => { + const tag = { value: ' ', type: 'simple' }; + await db.stores.tagStore.createTag(tag); + const { body } = await app.request.get('/api/admin/tags').expect(200); + expect(body.tags).toContainEqual(tag); +});