Skip to content
Snippets Groups Projects
Commit cffd496f authored by srosse's avatar srosse
Browse files

OO-3181: fix selenium after changes how the file name are normalized after upload

parent 1a94e74d
No related branches found
No related tags found
No related merge requests found
...@@ -104,14 +104,14 @@ public class CourseElementTest extends Deployments { ...@@ -104,14 +104,14 @@ public class CourseElementTest extends Deployments {
loginPage.loginAs(author.getLogin(), author.getPassword()); loginPage.loginAs(author.getLogin(), author.getPassword());
//create a course //create a course
String courseTitle = "Course-With-CP-" + UUID.randomUUID().toString(); String courseTitle = "Course-With-CP-" + UUID.randomUUID();
navBar navBar
.openAuthoringEnvironment() .openAuthoringEnvironment()
.createCourse(courseTitle) .createCourse(courseTitle)
.clickToolbarBack(); .clickToolbarBack();
//go the authoring environment to create a CP //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 navBar
.openAuthoringEnvironment() .openAuthoringEnvironment()
.createCP(cpTitle) .createCP(cpTitle)
...@@ -739,7 +739,7 @@ public class CourseElementTest extends Deployments { ...@@ -739,7 +739,7 @@ public class CourseElementTest extends Deployments {
.nodeTitle(dialogNodeTitle); .nodeTitle(dialogNodeTitle);
//upload a file in the configuration //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()); File imageFile = new File(imageUrl.toURI());
DialogConfigurationPage dialogConfig = new DialogConfigurationPage(browser); DialogConfigurationPage dialogConfig = new DialogConfigurationPage(browser);
dialogConfig dialogConfig
...@@ -1024,7 +1024,7 @@ public class CourseElementTest extends Deployments { ...@@ -1024,7 +1024,7 @@ public class CourseElementTest extends Deployments {
.clickTree() .clickTree()
.selectWithTitle(participantFolderTitle); .selectWithTitle(participantFolderTitle);
// open the return box of the participant and upload a file // 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()); File coachImageFile = new File(coachImageUrl.toURI());
ParticipantFolderPage folder = new ParticipantFolderPage(browser); ParticipantFolderPage folder = new ParticipantFolderPage(browser);
folder folder
...@@ -1059,7 +1059,7 @@ public class CourseElementTest extends Deployments { ...@@ -1059,7 +1059,7 @@ public class CourseElementTest extends Deployments {
.assertOnFile(coachImageFile.getName()) .assertOnFile(coachImageFile.getName())
.selectRootDirectory(); .selectRootDirectory();
// Participant upload a file in its drop box // 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()); File participantImageFile = new File(participantImageUrl.toURI());
participantFolder participantFolder
.openDropBox() .openDropBox()
......
...@@ -811,7 +811,7 @@ public class PortfolioV2Test extends Deployments { ...@@ -811,7 +811,7 @@ public class PortfolioV2Test extends Deployments {
.assertOnTitle(title, 4); .assertOnTitle(title, 4);
// add an image // 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()); File imageFile = new File(imageUrl.toURI());
entry entry
.addImage("Blue is the new black", imageFile) .addImage("Blue is the new black", imageFile)
......
src/test/java/org/olat/test/file_resources/IMG_1484.jpg

3.5 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment