From cffd496f6218b36779d3269bf81552517b45782a Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Thu, 8 Feb 2018 09:46:37 +0100 Subject: [PATCH] OO-3181: fix selenium after changes how the file name are normalized after upload --- .../org/olat/selenium/CourseElementTest.java | 10 +++++----- .../java/org/olat/selenium/PortfolioV2Test.java | 2 +- .../org/olat/test/file_resources/IMG_1484.jpg | Bin 0 -> 3589 bytes 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/test/java/org/olat/test/file_resources/IMG_1484.jpg diff --git a/src/test/java/org/olat/selenium/CourseElementTest.java b/src/test/java/org/olat/selenium/CourseElementTest.java index 7ae1570b422..47fa92503f4 100644 --- a/src/test/java/org/olat/selenium/CourseElementTest.java +++ b/src/test/java/org/olat/selenium/CourseElementTest.java @@ -104,14 +104,14 @@ public class CourseElementTest extends Deployments { loginPage.loginAs(author.getLogin(), author.getPassword()); //create a course - String courseTitle = "Course-With-CP-" + UUID.randomUUID().toString(); + String courseTitle = "Course-With-CP-" + UUID.randomUUID(); navBar .openAuthoringEnvironment() .createCourse(courseTitle) .clickToolbarBack(); //go the authoring environment to create a CP - String cpTitle = "CP for a course - " + UUID.randomUUID().toString(); + String cpTitle = "CP for a course - " + UUID.randomUUID(); navBar .openAuthoringEnvironment() .createCP(cpTitle) @@ -739,7 +739,7 @@ public class CourseElementTest extends Deployments { .nodeTitle(dialogNodeTitle); //upload a file in the configuration - URL imageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1482.JPG"); + URL imageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1484.jpg"); File imageFile = new File(imageUrl.toURI()); DialogConfigurationPage dialogConfig = new DialogConfigurationPage(browser); dialogConfig @@ -1024,7 +1024,7 @@ public class CourseElementTest extends Deployments { .clickTree() .selectWithTitle(participantFolderTitle); // open the return box of the participant and upload a file - URL coachImageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1482.JPG"); + URL coachImageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1484.jpg"); File coachImageFile = new File(coachImageUrl.toURI()); ParticipantFolderPage folder = new ParticipantFolderPage(browser); folder @@ -1059,7 +1059,7 @@ public class CourseElementTest extends Deployments { .assertOnFile(coachImageFile.getName()) .selectRootDirectory(); // Participant upload a file in its drop box - URL participantImageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1482.JPG"); + URL participantImageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1484.jpg"); File participantImageFile = new File(participantImageUrl.toURI()); participantFolder .openDropBox() diff --git a/src/test/java/org/olat/selenium/PortfolioV2Test.java b/src/test/java/org/olat/selenium/PortfolioV2Test.java index 5e56e531054..069c50cf7a3 100644 --- a/src/test/java/org/olat/selenium/PortfolioV2Test.java +++ b/src/test/java/org/olat/selenium/PortfolioV2Test.java @@ -811,7 +811,7 @@ public class PortfolioV2Test extends Deployments { .assertOnTitle(title, 4); // add an image - URL imageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1482.JPG"); + URL imageUrl = JunitTestHelper.class.getResource("file_resources/IMG_1484.jpg"); File imageFile = new File(imageUrl.toURI()); entry .addImage("Blue is the new black", imageFile) diff --git a/src/test/java/org/olat/test/file_resources/IMG_1484.jpg b/src/test/java/org/olat/test/file_resources/IMG_1484.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ce68d48fe9a1edafc95a424a4bd82714272c5591 GIT binary patch literal 3589 zcmex=<NpH&0WUXCHwH#V1_loxWcdG(;e=~NW*P&7uP=iZ0|NsG13RM-12d4t2!srb zQVgtMHUmQvqcohI#i#*Q!vs`g$N(f6_<^{H(Fn{I0kWIgGZ|Q*dZz(t5CGZ;G8IAx zWLBi+<R+Hn7bzI)nK3XJ85o*d8JJiZ8Yvi>fEdO`3=GT*7!j^nzyvqZYXLKY4Kn)w zL(T~qB_#z``ucgrdWk9dNvV3t`MLTPi3R$GdItIoHue<-iOJciB??KY>6v-9O7C~? zS5nAKu~iB;^)>J<a8Aw0^r$LI4X*MFNv_IHwoFm7w^OjGu&T%{$W1LtR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