Skip to content

Conversation

@wmathurin
Copy link
Contributor

Overview of changes:

  1. test_config.json renamed as ui_test_config.json and TestConfig.swift renamed as UITestConfig.swift
  2. ui_test_config.json now has a loginHosts section, each loginHost has a name, url and a list of users - two login hosts are expected currently one for regular authentication and one for advanced authentication
  3. UITestConfig.swift was changed accordingly as well as tests and tests helpers
  4. Existing tests all use regular auth org
  5. New tests (AdvancedAuthBeaconLoginTests) use the advanced auth org
  6. Had to tweak BaseAuthFlowTest.swift and LoginPageObject.swift to handle both regular authentication advanced authentication (e.g. to see the login settings button, one has to be on a host that does regular authentication, so when we detect that advanced authentication is being shown, we close it and switch to login.salesforce.com)

NB: I did not yet install any of the existing CAs or ECAs in the new org with advanced authentication turned on - for that reason, the only tests using advanced authentication are the ones using beacon apps (beacon apps auto-install in all orgs)

For details on the org setup see doc.

1) test_config.json renamed as ui_test_config.json and TestConfig.swift renamed as UITestConfig.swift
2) ui_test_config.json has a loginHosts section, each loginHost has a name, url and a list of users - two login hosts are expected currently one for regular authentication and one for advanced authentication
3) UITestConfig.swift changed accordingly as well as tests and tests helpers
4) Existing tests all use regular auth org - new tests AdvancedAuthBeaconLoginTests use the advanced auth org
5) Had to tweak BaseAuthFlowTest.swift and LoginPageObject.swift to handle both regular authentication advanced authentication

NB: I did not yet install any of the existing CAs or ECAs in the new org I created with advanced authentication turned on - for that reason, the only tests using advanced authentication are the ones using beacon apps (beacon apps auto-install in all orgs)
…the new app config (faster and more reliable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant