From ecb956bb7e478bb0b1fe5f4968739e6895d4fa07 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 5 Sep 2019 19:53:44 +0200 Subject: [PATCH] fix(@angular-devkit/build-angular): add trailing back slash to protractor baseUrl Fixes #15522 --- .../angular_devkit/build_angular/src/protractor/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/angular_devkit/build_angular/src/protractor/index.ts b/packages/angular_devkit/build_angular/src/protractor/index.ts index 3899946c4ab8..2ae7bda8bec7 100644 --- a/packages/angular_devkit/build_angular/src/protractor/index.ts +++ b/packages/angular_devkit/build_angular/src/protractor/index.ts @@ -139,6 +139,12 @@ async function execute( } } + // Like the baseUrl in protractor config file when using the API we need to add + // a trailing slash when provide to the baseUrl. + if (baseUrl && !baseUrl.endsWith('/')) { + baseUrl += '/'; + } + try { return await runProtractor(context.workspaceRoot, { ...options, baseUrl }); } catch {