Skip to content

Commit 0ef11c4

Browse files
authored
Minor e2e: prefix Template name to Screenshots (#1849)
* Add template name to screenshots
1 parent 2eafd34 commit 0ef11c4

File tree

12 files changed

+12
-13
lines changed

12 files changed

+12
-13
lines changed

tests/e2e/portal/2D_Plot.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ const screenshotPrefix = "2DPlot_";
1515

1616

1717
async function runTutorial () {
18-
const tutorial = new tutorialBase.TutorialBase(anonURL);
18+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1919

2020
tutorial.startScreenshooter();
21-
2221
const page = await tutorial.beforeScript();
2322
const studyData = await tutorial.openStudyLink();
2423

tests/e2e/portal/3D_Anatomical.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const screenshotPrefix = "3DAnatomical_";
1414

1515

1616
async function runTutorial () {
17-
const tutorial = new tutorialBase.TutorialBase(anonURL);
17+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1818

1919
tutorial.startScreenshooter();
2020
const page = await tutorial.beforeScript();

tests/e2e/portal/3D_EM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const screenshotPrefix = "3DEM_";
1414

1515

1616
async function runTutorial () {
17-
const tutorial = new tutorialBase.TutorialBase(anonURL);
17+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1818

1919
tutorial.startScreenshooter();
2020
const page = await tutorial.beforeScript();

tests/e2e/portal/Bornstein.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const screenshotPrefix = "Bornstein_";
1414

1515

1616
async function runTutorial () {
17-
const tutorial = new tutorialBase.TutorialBase(anonURL);
17+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1818

1919
tutorial.startScreenshooter();
2020
const page = await tutorial.beforeScript();

tests/e2e/portal/CC_Human.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const screenshotPrefix = "CCHuman_";
1414

1515

1616
async function runTutorial () {
17-
const tutorial = new tutorialBase.TutorialBase(anonURL);
17+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1818

1919
tutorial.startScreenshooter();
2020
const page = await tutorial.beforeScript();

tests/e2e/portal/CC_Rabbit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const screenshotPrefix = "CCRabbit_";
1414

1515

1616
async function runTutorial () {
17-
const tutorial = new tutorialBase.TutorialBase(anonURL);
17+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1818

1919
tutorial.startScreenshooter();
2020
const page = await tutorial.beforeScript();

tests/e2e/portal/Mattward.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const screenshotPrefix = "Mattward_";
1414

1515

1616
async function runTutorial () {
17-
const tutorial = new tutorialBase.TutorialBase(anonURL);
17+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1818

1919
tutorial.startScreenshooter();
2020
const page = await tutorial.beforeScript();

tests/e2e/portal/opencor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const screenshotPrefix = "Opencor_";
1414

1515

1616
async function runTutorial () {
17-
const tutorial = new tutorialBase.TutorialBase(anonURL);
17+
const tutorial = new tutorialBase.TutorialBase(anonURL, screenshotPrefix);
1818

1919
tutorial.startScreenshooter();
2020
const page = await tutorial.beforeScript();

tests/e2e/tutorials/jupyters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const {
1515
const templateName = "Jupyters";
1616

1717
async function runTutorial() {
18-
const tutorial = new tutorialBase.TutorialBase(url, user, pass, newUser, templateName, enableDemoMode);
18+
const tutorial = new tutorialBase.TutorialBase(url, templateName, user, pass, newUser, enableDemoMode);
1919

2020
try {
2121
tutorial.startScreenshooter();

tests/e2e/tutorials/mattward.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const {
1515
const templateName = "Mattward";
1616

1717
async function runTutorial() {
18-
const tutorial = new tutorialBase.TutorialBase(url, user, pass, newUser, templateName, enableDemoMode);
18+
const tutorial = new tutorialBase.TutorialBase(url, templateName, user, pass, newUser, enableDemoMode);
1919

2020
try {
2121
tutorial.startScreenshooter();

0 commit comments

Comments
 (0)