🎨(frontend) standalone component DocTagPublic

We want to rerender the public tag when we update
the visibility of a document. The problem is that
the public tag is not a standalone component, so
to have it rerender we needed to rerender the whole
document, it is not visually nice.
We created a standalone component for
the public tag, so when we update the visibility
of a document, only the public tag will be rerender.
This commit is contained in:
Anthony LC
2024-09-10 11:50:01 +02:00
committed by Anthony LC
parent 37db31a8d5
commit e4712831f2
5 changed files with 50 additions and 14 deletions

View File

@@ -67,6 +67,12 @@ export const createDoc = async (
await page.locator('.c__modal__backdrop').click({
position: { x: 0, y: 0 },
});
await expect(
page
.getByLabel('It is the card information about the document.')
.getByText('Public'),
).toBeVisible();
}
}