Skip to content

Commit a8d5362

Browse files
committed
fix for jasmine
1 parent 23c57c8 commit a8d5362

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/service.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class LambdaRestService {
2929
_error;
3030
_ltErrorRemark;
3131
_lambdaCredentials;
32-
_currrentTestTitle;
32+
_currentTestTitle;
3333

3434
constructor(options = {}, capabilities = {}, config = {}) {
3535
this._options = { ...DEFAULT_OPTIONS, ...options };
@@ -100,8 +100,12 @@ export default class LambdaRestService {
100100
return;
101101
}
102102

103-
this._currrentTestTitle = test?.parent;
104-
this._currrentTestTitle = `${this._currrentTestTitle} - ${test?.title}`;
103+
if (test && test?.parent !== undefined) {
104+
this._currentTestTitle = test?.parent;
105+
this._currentTestTitle = `${this._currentTestTitle} - ${test?.title}`;
106+
} else if (test && test?.fullName !== undefined) {
107+
this._currentTestTitle = test?.fullName;
108+
}
105109

106110
if (test.title && !this._testTitle) {
107111
this._testTitle = test.title;
@@ -245,7 +249,7 @@ export default class LambdaRestService {
245249
if (!this._browser.isMultiremote) {
246250
log.info(`Update (reloaded) job with sessionId ${oldSessionId}, ${status}`);
247251

248-
await this._update({ sessionId: oldSessionId, fullTitle: this._currrentTestTitle, status: status, calledOnReload: true });
252+
await this._update({ sessionId: oldSessionId, fullTitle: this._currentTestTitle, status: status, calledOnReload: true });
249253

250254
} else {
251255
const browserName = this._browser.instances.filter(browserName => this._browser[browserName].sessionId === newSessionId)[0];

0 commit comments

Comments
 (0)