Skip to content

Commit feb9cd4

Browse files
authored
openStudyLink (#1461)
1 parent 6335ad3 commit feb9cd4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/e2e/tutorials/tutorialBase.js

+15
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ class TutorialBase {
4747
await utils.takeScreenshot(this.__page, this.__templateName + "_landingPage_" + domain);
4848
}
4949

50+
async openStudyLink() {
51+
this.__responsesQueue.addResponseListener("open");
52+
53+
await this.goTo();
54+
55+
let resp = null;
56+
try {
57+
resp = await this.__responsesQueue.waitUntilResponse("open");
58+
}
59+
catch(err) {
60+
console.error(this.__templateName, "could not be started", err);
61+
}
62+
return resp;
63+
}
64+
5065
async registerIfNeeded() {
5166
if (this.__newUser) {
5267
await auto.register(this.__page, this.__user, this.__pass);

0 commit comments

Comments
 (0)