♻️(frontend) create useProviderStore

We created useProviderStore, a store dedicated
to managing the provider of the document.
We created as well a new hook useCollaboration,
it will be use to interact with the provider store.
This refacto is a first step to implement
the long polling.
This commit is contained in:
Anthony LC
2024-12-23 11:07:55 +01:00
committed by Anthony LC
parent 6cb2702e6b
commit 02a4740c66
10 changed files with 127 additions and 74 deletions

View File

@@ -41,7 +41,7 @@ export const createDoc = async (
.click();
await page.getByRole('heading', { name: 'Untitled document' }).click();
await page.keyboard.type(randomDocs[i]);
await page.keyboard.type(randomDocs[i], { delay: 100 });
await page.getByText('Created at ').click();
}