From 7521e71704922433bc8d3ddecc07c8d33dd23fd1 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Fri, 29 Jan 2016 08:54:56 +0100 Subject: [PATCH] skip attachments drag e2e in ie & firefox --- e2e/shared/detail.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/e2e/shared/detail.js b/e2e/shared/detail.js index 4a4e619b..5f6dc991 100644 --- a/e2e/shared/detail.js +++ b/e2e/shared/detail.js @@ -225,15 +225,17 @@ shared.attachmentTesting = async function() { // Check set name let name = await attachmentHelper.getLastAttachmentName(); expect(name).to.be.equal('This is the testing name ' + date); + // Check new length let newAttachmentsLength = await attachmentHelper.countAttachments(); expect(newAttachmentsLength).to.be.equal(attachmentsLength + 1); //Drag'n drop - await attachmentHelper.dragLastAttchmentToFirstPosition(); - name = await attachmentHelper.getFirstAttachmentName(); - expect(name).to.be.equal('This is the testing name ' + date); - + if (['firefox', 'internet explorer'].indexOf(browser.browserName) === -1) { + await attachmentHelper.dragLastAttchmentToFirstPosition(); + name = await attachmentHelper.getFirstAttachmentName(); + expect(name).to.be.equal('This is the testing name ' + date); + } // Renaming await attachmentHelper.renameLastAttchment('This is the new testing name ' + date); name = await attachmentHelper.getLastAttachmentName(); @@ -264,7 +266,6 @@ shared.attachmentTesting = async function() { attachmentHelper.list(); - // Deleting attachmentsLength = await attachmentHelper.countAttachments(); await attachmentHelper.deleteLastAttachment();