-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
baseUrl
flag in protractors schema is deprecated
#13952
Comments
Seems like the new flavor of protractor builders supports the buildUrl flag. So I guess the current deprecation flag is... false? |
Hi @krotscheck, the deprecation of baseUrl is intentional. The main reason why this is being deprecated is due to additional code to maintain and the increase of the scope of the CLI. The new builders have the baseUrl in place, because of our deprecation policy. Whatever is deprecated needs to stay around for 2 major versions, so consumers have enough time to adjust to the changes required. I'll leave this issue open for the time being to see what is the feedback on the community and other team members about this. |
We have the exact same issue and desire. We want our CI/CD to define the base-url rather than using different config files that only differ in this one setting. |
Same issue here. It seems unreasonable to have multiple configurations just because of one variable. Also, there is a problem with dynamic baseUrls which get generated during CI. |
so we did this to get around this insanity: Protractor.config package.json under scripts Run them this way: Hope this helps. |
Any resolution on this? We need the baseUrl feature as well, as our URLs are dynamic in the CI process. |
The depreciation caused CI/CD problems for us as well during migration to Angular 8 (not only We switched to @DarthOpto's approach of custom environment variables set in the Maybe the warning could just be updated to make that suggestion, something like:
|
We decided not to deprecate this flag. |
…n protractor builder Closes #13952
…n protractor builder Closes #13952
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🚀 Feature request
Please do not deprecate and remove the
baseUrl
flag in the protractor schema.Command (mark with an
x
)Description
In our CI/CD system, we run our e2e tests as a part of our pre-merge validations, which include deploying the SPA configured to run against our staging API. In order to do this cleanly, and without namespace conflicts/races, we give each of these applications their own base-href, as follows:
This is then uploaded to S3, and tested as follows:
We also use these draft builds to perform Beta feature usability tests, product demos, and a variety of other activities that are greatly enhanced by having a fully functioning UI. Similarly, we publish whitelabel UI's for our customers, which we also run protractor-driven acceptance tests against, and whose base-url's vary greatly.
Just now, I noticed this message:
Which I traced to the following entry in the protractor schematic.
As our
buildUrl
value is not known ahead of time, we cannot easily use the protractor config file; while we could attempt to inject it via some form of environment parameter, modifying environment parameters is more cumbersome than adding a commandline flag.Describe the solution you'd like
We do not want this flag to be removed. It's not harming anyone, why is it being removed?
Describe alternatives you've considered
Writing a configuration file for CI/CD, for every customer, environment, and build target we have. This will litter our project with config files, and we'd really like to avoid that.
The text was updated successfully, but these errors were encountered: