mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
timeouts
This commit is contained in:
parent
3718767d5a
commit
7f384f13cd
1 changed files with 12 additions and 12 deletions
|
@ -137,7 +137,7 @@ describe(__filename, function () {
|
||||||
// For some reason word import does not work in testing..
|
// For some reason word import does not work in testing..
|
||||||
// TODO: fix support for .doc files..
|
// TODO: fix support for .doc files..
|
||||||
it('Tries to import .doc that uses soffice or abiword', async function () {
|
it('Tries to import .doc that uses soffice or abiword', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.post(`/p/${testPadId}/import`)
|
await agent.post(`/p/${testPadId}/import`)
|
||||||
.attach('file', wordDoc, {filename: '/test.doc', contentType: 'application/msword'})
|
.attach('file', wordDoc, {filename: '/test.doc', contentType: 'application/msword'})
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -145,7 +145,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('exports DOC', async function () {
|
it('exports DOC', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.get(`/p/${testPadId}/export/doc`)
|
await agent.get(`/p/${testPadId}/export/doc`)
|
||||||
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -153,7 +153,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Tries to import .docx that uses soffice or abiword', async function () {
|
it('Tries to import .docx that uses soffice or abiword', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.post(`/p/${testPadId}/import`)
|
await agent.post(`/p/${testPadId}/import`)
|
||||||
.attach('file', wordXDoc, {
|
.attach('file', wordXDoc, {
|
||||||
filename: '/test.docx',
|
filename: '/test.docx',
|
||||||
|
@ -165,7 +165,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('exports DOC from imported DOCX', async function () {
|
it('exports DOC from imported DOCX', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.get(`/p/${testPadId}/export/doc`)
|
await agent.get(`/p/${testPadId}/export/doc`)
|
||||||
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -173,7 +173,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Tries to import .pdf that uses soffice or abiword', async function () {
|
it('Tries to import .pdf that uses soffice or abiword', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.post(`/p/${testPadId}/import`)
|
await agent.post(`/p/${testPadId}/import`)
|
||||||
.attach('file', pdfDoc, {filename: '/test.pdf', contentType: 'application/pdf'})
|
.attach('file', pdfDoc, {filename: '/test.pdf', contentType: 'application/pdf'})
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -181,7 +181,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('exports PDF', async function () {
|
it('exports PDF', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.get(`/p/${testPadId}/export/pdf`)
|
await agent.get(`/p/${testPadId}/export/pdf`)
|
||||||
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -189,7 +189,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Tries to import .odt that uses soffice or abiword', async function () {
|
it('Tries to import .odt that uses soffice or abiword', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.post(`/p/${testPadId}/import`)
|
await agent.post(`/p/${testPadId}/import`)
|
||||||
.attach('file', odtDoc, {filename: '/test.odt', contentType: 'application/odt'})
|
.attach('file', odtDoc, {filename: '/test.odt', contentType: 'application/odt'})
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -197,7 +197,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('exports ODT', async function () {
|
it('exports ODT', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.get(`/p/${testPadId}/export/odt`)
|
await agent.get(`/p/${testPadId}/export/odt`)
|
||||||
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
.buffer(true).parse(superagent.parse['application/octet-stream'])
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -206,7 +206,7 @@ describe(__filename, function () {
|
||||||
}); // End of AbiWord/LibreOffice tests.
|
}); // End of AbiWord/LibreOffice tests.
|
||||||
|
|
||||||
it('Tries to import .etherpad', async function () {
|
it('Tries to import .etherpad', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.post(`/p/${testPadId}/import`)
|
await agent.post(`/p/${testPadId}/import`)
|
||||||
.attach('file', etherpadDoc, {
|
.attach('file', etherpadDoc, {
|
||||||
filename: '/test.etherpad',
|
filename: '/test.etherpad',
|
||||||
|
@ -217,7 +217,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('exports Etherpad', async function () {
|
it('exports Etherpad', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.get(`/p/${testPadId}/export/etherpad`)
|
await agent.get(`/p/${testPadId}/export/etherpad`)
|
||||||
.buffer(true).parse(superagent.parse.text)
|
.buffer(true).parse(superagent.parse.text)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
@ -225,7 +225,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('exports HTML for this Etherpad file', async function () {
|
it('exports HTML for this Etherpad file', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
await agent.get(`/p/${testPadId}/export/html`)
|
await agent.get(`/p/${testPadId}/export/html`)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
.expect('content-type', 'text/html; charset=utf-8')
|
.expect('content-type', 'text/html; charset=utf-8')
|
||||||
|
@ -233,7 +233,7 @@ describe(__filename, function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Tries to import unsupported file type', async function () {
|
it('Tries to import unsupported file type', async function () {
|
||||||
this.timeout(2000);
|
this.timeout(3000);
|
||||||
settings.allowUnknownFileEnds = false;
|
settings.allowUnknownFileEnds = false;
|
||||||
await agent.post(`/p/${testPadId}/import`)
|
await agent.post(`/p/${testPadId}/import`)
|
||||||
.attach('file', padText, {filename: '/test.xasdasdxx', contentType: 'weirdness/jobby'})
|
.attach('file', padText, {filename: '/test.xasdasdxx', contentType: 'weirdness/jobby'})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue