mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fixes for e2e test cases (#5451)
This commit is contained in:
parent
263a14db1c
commit
699f28f318
1 changed files with 3 additions and 1 deletions
|
|
@ -1129,7 +1129,7 @@ describe('apps controller', () => {
|
|||
.delete(`/api/apps/${application.id}/versions/${version2.id}`)
|
||||
.set('Authorization', authHeaderForUser(developerUserData.user));
|
||||
|
||||
expect(response.statusCode).toBe(200);
|
||||
expect(response.statusCode).toBe(403);
|
||||
});
|
||||
|
||||
it('should not be able to delete app versions if user does not have app update permission group', async () => {
|
||||
|
|
@ -1165,6 +1165,8 @@ describe('apps controller', () => {
|
|||
user: adminUserData.user,
|
||||
});
|
||||
const version = await createApplicationVersion(app, application);
|
||||
await createApplicationVersion(app, application, { name: 'v2', definition: null });
|
||||
|
||||
await getManager().update(App, { id: application.id }, { currentVersionId: version.id });
|
||||
|
||||
const response = await request(app.getHttpServer())
|
||||
|
|
|
|||
Loading…
Reference in a new issue