Skip to content

Commit 7bd5998

Browse files
alan-agius4kyliau
authored andcommitted
fix(@angular-devkit/build-angular): add trailing back slash to protractor baseUrl
Fixes #15522
1 parent 382ba74 commit 7bd5998

File tree

1 file changed

+6
-0
lines changed
  • packages/angular_devkit/build_angular/src/protractor

1 file changed

+6
-0
lines changed

packages/angular_devkit/build_angular/src/protractor/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ async function execute(
139139
}
140140
}
141141

142+
// Like the baseUrl in protractor config file when using the API we need to add
143+
// a trailing slash when provide to the baseUrl.
144+
if (baseUrl && !baseUrl.endsWith('/')) {
145+
baseUrl += '/';
146+
}
147+
142148
try {
143149
return await runProtractor(context.workspaceRoot, { ...options, baseUrl });
144150
} catch {

0 commit comments

Comments
 (0)