shamrickus commented on code in PR #6696: URL: https://github.com/apache/trafficcontrol/pull/6696#discussion_r845596310
########## experimental/traffic-portal/nightwatch/globals/globals.ts: ########## @@ -0,0 +1,35 @@ +/* +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +import {NightwatchGlobals} from "nightwatch"; + +/** + * Defines the configuration used for the testing environment + */ +export interface GlobalConfig extends NightwatchGlobals { + adminPass: string; + adminUser: string; + trafficOpsURL: string; +} +const config = { + chrome_headless: {}, + default: { + adminPass: "twelve12", + adminUser: "admin", + trafficOpsURL: "https://localhost:6443" + } +}; +config.chrome_headless = config.default; Review Comment: > I suppose you could also just put `as typeof this.default` on the initialization of `chrome_headless`. I just hate using `as` so I always try to figure out how to not use it. I agree, however with how the typings for nightwatch are currently setup I don't think this is possible. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
