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

no-jira: fix typo, fix selenium tests

parent 1185f667
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ lock.failed=These course settings are edited since {1} by user {0}. ...@@ -23,7 +23,7 @@ lock.failed=These course settings are edited since {1} by user {0}.
selectfile=Choose file selectfile=Choose file
sf.changesfresource=Replace sf.changesfresource=Replace
sf.notconfigured=<i>No resource folder selected</i> sf.notconfigured=<i>No resource folder selected</i>
sf.resourcetitle=Selected recource folder sf.resourcetitle=Selected resource folder
sf.resourcetitle.helptext=The files stored there can be found in the storage folder of your course when selecting the sub-folder "_sharedfolder". sf.resourcetitle.helptext=The files stored there can be found in the storage folder of your course when selecting the sub-folder "_sharedfolder".
sf.resource.readonly=Read only sf.resource.readonly=Read only
sf.selectsfresource=Select sf.selectsfresource=Select
......
...@@ -148,7 +148,7 @@ public class AssessmentTest { ...@@ -148,7 +148,7 @@ public class AssessmentTest {
.selectWithTitle(testNodeTitle); .selectWithTitle(testNodeTitle);
//check that the title of the start page of test is correct //check that the title of the start page of test is correct
WebElement testH2 = browser.findElement(By.cssSelector("div.o_titled_wrapper.o_course_run h2")); WebElement testH2 = browser.findElement(By.cssSelector("div.o_course_run h2"));
Assert.assertEquals(testNodeTitle, testH2.getText().trim()); Assert.assertEquals(testNodeTitle, testH2.getText().trim());
//start the test //start the test
...@@ -245,7 +245,7 @@ public class AssessmentTest { ...@@ -245,7 +245,7 @@ public class AssessmentTest {
.selectWithTitle(testNodeTitle); .selectWithTitle(testNodeTitle);
//check that the title of the start page of test is correct //check that the title of the start page of test is correct
WebElement testH2 = browser.findElement(By.cssSelector("div.o_titled_wrapper.o_course_run h2")); WebElement testH2 = browser.findElement(By.cssSelector("div.o_course_run h2"));
Assert.assertEquals(testNodeTitle, testH2.getText().trim()); Assert.assertEquals(testNodeTitle, testH2.getText().trim());
//add Ryomou as a course member //add Ryomou as a course member
...@@ -407,7 +407,7 @@ public class AssessmentTest { ...@@ -407,7 +407,7 @@ public class AssessmentTest {
.clickTree() .clickTree()
.selectWithTitle(scormNodeTitle); .selectWithTitle(scormNodeTitle);
By scormH2By = By.cssSelector("div.o_titled_wrapper.o_course_run h2"); By scormH2By = By.cssSelector("div.o_course_run h2");
WebElement scormH2 = ryomouBrowser.findElement(scormH2By); WebElement scormH2 = ryomouBrowser.findElement(scormH2By);
Assert.assertEquals(scormNodeTitle, scormH2.getText().trim()); Assert.assertEquals(scormNodeTitle, scormH2.getText().trim());
...@@ -509,7 +509,7 @@ public class AssessmentTest { ...@@ -509,7 +509,7 @@ public class AssessmentTest {
OOGraphene.closeBlueMessageWindow(browser); OOGraphene.closeBlueMessageWindow(browser);
//check that the title of the start page of test is correct //check that the title of the start page of test is correct
WebElement testH2 = browser.findElement(By.cssSelector("div.o_titled_wrapper.o_course_run h2")); WebElement testH2 = browser.findElement(By.cssSelector("div.o_course_run h2"));
Assert.assertEquals(testNodeTitle, testH2.getText().trim()); Assert.assertEquals(testNodeTitle, testH2.getText().trim());
//add Ryomou and Kanu as a course member //add Ryomou and Kanu as a course member
......
...@@ -748,7 +748,7 @@ public class CourseTest { ...@@ -748,7 +748,7 @@ public class CourseTest {
.selectWithTitle(testNodeTitle); .selectWithTitle(testNodeTitle);
//check that the title of the start page of test is correct //check that the title of the start page of test is correct
WebElement testH2 = browser.findElement(By.cssSelector("div.o_titled_wrapper.o_course_run h2")); WebElement testH2 = browser.findElement(By.cssSelector("div.o_course_run h2"));
Assert.assertEquals(testNodeTitle, testH2.getText().trim()); Assert.assertEquals(testNodeTitle, testH2.getText().trim());
} }
...@@ -1047,7 +1047,7 @@ public class CourseTest { ...@@ -1047,7 +1047,7 @@ public class CourseTest {
.select(courseTitle)//go to the details page .select(courseTitle)//go to the details page
.start(); .start();
By courseTitleBy = By.cssSelector(".o_course_run h2"); By courseTitleBy = By.cssSelector("div.o_course_run h2");
WebElement courseTitleEl = userBrowser.findElement(courseTitleBy); WebElement courseTitleEl = userBrowser.findElement(courseTitleBy);
Assert.assertTrue(courseTitleEl.getText().contains(courseTitle)); Assert.assertTrue(courseTitleEl.getText().contains(courseTitle));
} }
......
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