🐛 Fix item version update related notification (#470)

* version notification
* updated version notification e2e test

---------

Co-authored-by: Monta <monta@HP-ProBook-445-14-inch-G9-Notebook-PC-505aadfc.localdomain>
This commit is contained in:
Montassar Ghanmy
2024-03-22 17:16:08 +01:00
committed by GitHub
parent 574d6438b2
commit 01145bbe83
4 changed files with 21 additions and 15 deletions
@@ -40,8 +40,9 @@ export const e2e_createVersion = async (
platform: TestPlatform,
id: string,
payload: Partial<FileVersion>,
jwt?: string,
) => {
const token = await platform.auth.getJWTToken();
const token = jwt ?? (await platform.auth.getJWTToken());
return await platform.app.inject({
method: "POST",