skip attachments drag e2e in ie & firefox
parent
56d120d060
commit
7521e71704
|
@ -225,15 +225,17 @@ shared.attachmentTesting = async function() {
|
||||||
// Check set name
|
// Check set name
|
||||||
let name = await attachmentHelper.getLastAttachmentName();
|
let name = await attachmentHelper.getLastAttachmentName();
|
||||||
expect(name).to.be.equal('This is the testing name ' + date);
|
expect(name).to.be.equal('This is the testing name ' + date);
|
||||||
|
|
||||||
// Check new length
|
// Check new length
|
||||||
let newAttachmentsLength = await attachmentHelper.countAttachments();
|
let newAttachmentsLength = await attachmentHelper.countAttachments();
|
||||||
expect(newAttachmentsLength).to.be.equal(attachmentsLength + 1);
|
expect(newAttachmentsLength).to.be.equal(attachmentsLength + 1);
|
||||||
|
|
||||||
//Drag'n drop
|
//Drag'n drop
|
||||||
|
if (['firefox', 'internet explorer'].indexOf(browser.browserName) === -1) {
|
||||||
await attachmentHelper.dragLastAttchmentToFirstPosition();
|
await attachmentHelper.dragLastAttchmentToFirstPosition();
|
||||||
name = await attachmentHelper.getFirstAttachmentName();
|
name = await attachmentHelper.getFirstAttachmentName();
|
||||||
expect(name).to.be.equal('This is the testing name ' + date);
|
expect(name).to.be.equal('This is the testing name ' + date);
|
||||||
|
}
|
||||||
// Renaming
|
// Renaming
|
||||||
await attachmentHelper.renameLastAttchment('This is the new testing name ' + date);
|
await attachmentHelper.renameLastAttchment('This is the new testing name ' + date);
|
||||||
name = await attachmentHelper.getLastAttachmentName();
|
name = await attachmentHelper.getLastAttachmentName();
|
||||||
|
@ -264,7 +266,6 @@ shared.attachmentTesting = async function() {
|
||||||
|
|
||||||
attachmentHelper.list();
|
attachmentHelper.list();
|
||||||
|
|
||||||
|
|
||||||
// Deleting
|
// Deleting
|
||||||
attachmentsLength = await attachmentHelper.countAttachments();
|
attachmentsLength = await attachmentHelper.countAttachments();
|
||||||
await attachmentHelper.deleteLastAttachment();
|
await attachmentHelper.deleteLastAttachment();
|
||||||
|
|
Loading…
Reference in New Issue