mirror of
https://github.com/documenso/documenso.git
synced 2025-11-09 20:12:31 +10:00
chore: update tests
This commit is contained in:
@ -427,18 +427,18 @@ test.describe('Document API V2', () => {
|
|||||||
field: {
|
field: {
|
||||||
recipientId: recipient!.id,
|
recipientId: recipient!.id,
|
||||||
type: 'TEXT',
|
type: 'TEXT',
|
||||||
pageNumber: 791.77,
|
pageNumber: 1,
|
||||||
pageX: 7845.22,
|
pageX: 25.5,
|
||||||
pageY: 6843.16,
|
pageY: 30.2,
|
||||||
width: 3932.15,
|
width: 40.0,
|
||||||
height: 8879.89,
|
height: 15.5,
|
||||||
fieldMeta: { type: 'text', label: 'Test Field' },
|
fieldMeta: { type: 'text', label: 'Test Field' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(res.ok()).toBeFalsy();
|
expect(res.ok()).toBeFalsy();
|
||||||
expect([404, 401, 500]).toContain(res.status());
|
expect([400, 404, 401, 500]).toContain(res.status());
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should allow authorized access to document field create endpoint', async ({
|
test('should allow authorized access to document field create endpoint', async ({
|
||||||
@ -459,11 +459,11 @@ test.describe('Document API V2', () => {
|
|||||||
field: {
|
field: {
|
||||||
recipientId: recipient!.id,
|
recipientId: recipient!.id,
|
||||||
type: 'TEXT',
|
type: 'TEXT',
|
||||||
pageNumber: 791.77,
|
pageNumber: 1,
|
||||||
pageX: 7845.22,
|
pageX: 25.5,
|
||||||
pageY: 6843.16,
|
pageY: 30.2,
|
||||||
width: 3932.15,
|
width: 40.0,
|
||||||
height: 8879.89,
|
height: 15.5,
|
||||||
fieldMeta: { type: 'text', label: 'Test Field' },
|
fieldMeta: { type: 'text', label: 'Test Field' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -494,21 +494,21 @@ test.describe('Document API V2', () => {
|
|||||||
{
|
{
|
||||||
recipientId: recipient!.id,
|
recipientId: recipient!.id,
|
||||||
type: 'TEXT',
|
type: 'TEXT',
|
||||||
pageNumber: 791.77,
|
pageNumber: 1,
|
||||||
pageX: 7845.22,
|
pageX: 25.5,
|
||||||
pageY: 6843.16,
|
pageY: 30.2,
|
||||||
width: 3932.15,
|
width: 40.0,
|
||||||
height: 8879.89,
|
height: 15.5,
|
||||||
fieldMeta: { type: 'text', label: 'First test field' },
|
fieldMeta: { type: 'text', label: 'First test field' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
recipientId: recipient!.id,
|
recipientId: recipient!.id,
|
||||||
type: 'TEXT',
|
type: 'TEXT',
|
||||||
pageNumber: 791.77,
|
pageNumber: 1,
|
||||||
pageX: 845.22,
|
pageX: 50.0,
|
||||||
pageY: 843.16,
|
pageY: 60.0,
|
||||||
width: 932.15,
|
width: 35.0,
|
||||||
height: 879.89,
|
height: 12.0,
|
||||||
fieldMeta: { type: 'text', label: 'Second test field' },
|
fieldMeta: { type: 'text', label: 'Second test field' },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -538,21 +538,21 @@ test.describe('Document API V2', () => {
|
|||||||
{
|
{
|
||||||
recipientId: recipient!.id,
|
recipientId: recipient!.id,
|
||||||
type: 'TEXT',
|
type: 'TEXT',
|
||||||
pageNumber: 791.77,
|
pageNumber: 1,
|
||||||
pageX: 7845.22,
|
pageX: 25.5,
|
||||||
pageY: 6843.16,
|
pageY: 30.2,
|
||||||
width: 3932.15,
|
width: 40.0,
|
||||||
height: 8879.89,
|
height: 15.5,
|
||||||
fieldMeta: { type: 'text', label: 'First test field' },
|
fieldMeta: { type: 'text', label: 'First test field' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
recipientId: recipient!.id,
|
recipientId: recipient!.id,
|
||||||
type: 'TEXT',
|
type: 'TEXT',
|
||||||
pageNumber: 791.77,
|
pageNumber: 1,
|
||||||
pageX: 845.22,
|
pageX: 50.0,
|
||||||
pageY: 843.16,
|
pageY: 60.0,
|
||||||
width: 932.15,
|
width: 35.0,
|
||||||
height: 879.89,
|
height: 12.0,
|
||||||
fieldMeta: { type: 'text', label: 'Second test field' },
|
fieldMeta: { type: 'text', label: 'Second test field' },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -892,11 +892,11 @@ test.describe('Document API V2', () => {
|
|||||||
field: {
|
field: {
|
||||||
recipientId: recipient.id,
|
recipientId: recipient.id,
|
||||||
type: FieldType.TEXT,
|
type: FieldType.TEXT,
|
||||||
pageNumber: 5735.12,
|
pageNumber: 1,
|
||||||
pageX: 936.28,
|
pageX: 35.0,
|
||||||
pageY: 594.41,
|
pageY: 45.0,
|
||||||
width: 589.39,
|
width: 30.0,
|
||||||
height: 122.23,
|
height: 10.0,
|
||||||
fieldMeta: { type: 'text', label: 'Test' },
|
fieldMeta: { type: 'text', label: 'Test' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -931,11 +931,11 @@ test.describe('Document API V2', () => {
|
|||||||
field: {
|
field: {
|
||||||
recipientId: recipient.id,
|
recipientId: recipient.id,
|
||||||
type: FieldType.TEXT,
|
type: FieldType.TEXT,
|
||||||
pageNumber: 5735.12,
|
pageNumber: 1,
|
||||||
pageX: 936.28,
|
pageX: 35.0,
|
||||||
pageY: 594.41,
|
pageY: 45.0,
|
||||||
width: 589.39,
|
width: 30.0,
|
||||||
height: 122.23,
|
height: 10.0,
|
||||||
fieldMeta: { type: 'text', label: 'Test' },
|
fieldMeta: { type: 'text', label: 'Test' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user