|
@@ -96,7 +96,8 @@ describe('api', function() {
|
|
body: {
|
|
body: {
|
|
url: wwwUrl + '/simple-page.html',
|
|
url: wwwUrl + '/simple-page.html',
|
|
waitForResponse: true,
|
|
waitForResponse: true,
|
|
- screenshot: true
|
|
|
|
|
|
+ screenshot: true,
|
|
|
|
+ device: 'tablet'
|
|
},
|
|
},
|
|
json: true,
|
|
json: true,
|
|
headers: {
|
|
headers: {
|
|
@@ -164,6 +165,9 @@ describe('api', function() {
|
|
body.should.have.a.property('javascriptExecutionTree').that.is.an('object');
|
|
body.should.have.a.property('javascriptExecutionTree').that.is.an('object');
|
|
body.javascriptExecutionTree.should.deep.equal({});
|
|
body.javascriptExecutionTree.should.deep.equal({});
|
|
|
|
|
|
|
|
+ // Check if the device is set to tablet
|
|
|
|
+ body.params.options.should.have.a.property('device').that.equals('tablet');
|
|
|
|
+
|
|
// Check if the screenshot temporary file was correctly removed
|
|
// Check if the screenshot temporary file was correctly removed
|
|
body.params.options.should.not.have.a.property('screenshot');
|
|
body.params.options.should.not.have.a.property('screenshot');
|
|
// Check if the screenshot buffer was correctly removed
|
|
// Check if the screenshot buffer was correctly removed
|