Closed maiargu closed 2 years ago
the scenario/use-case you describe is spot-on for the multi-remote feature of wdi5
π
and I take it you've gained quite some experience with coding multi-remote tests in wdi5
!
given that it's pretty easy to contribute to the documentation, would you mind giving this a shot?
as you stated, many would benefit from that.
thanks in advance!
hey π - silence for 30 days π€ ... anybody? π
closed π΄ because silencio π€« since an additional 14 days after staleness π
Describe the bug We have a rather complicated end to end test case scenario, but nothing not manageable with an e2e test framework (in my opinion). Let me explain:
frontendA
is coded with UI5 (for managing business partners)frontendB
is coded with angular (a webshop where business partners can login and order items)userA
that will login intofrontendA
(by using the chrome browser for example) and create a new business partner by typing first name, last name, email address and click save buttonuserB
will be able to login intofrontendB
(by using the firefox browser for example) by using the email address and the default initial passworduserB
will place an order infrontendB
webshopfrontendA
To be able to implement this test case scenario we wanted to use the capabilities configuration option from webdriverIO https://webdriver.io/docs/options/#capabilities-1 and have multiremote 2 browser instances.
And here the whole configuration hell started.
For one browser instance we want to
skipInjectUI5OnStart
and after a successful login (the login page from the authentication provider service does not contain UI5 controls) we want to inject wdi5 service. For the other browser instance we don't even need wdi5, since it's written in angular.Expected behavior I would have wished for a better documentation regarding the whole multi browser configuration for wdi5. Please think about extending the documentation here, since this kind of recipe might be also helpful for developers trying to test chatbot applications.
I also see that "login for e2e real test cases" is on the road map https://github.com/ui5-community/wdi5/issues/207 with the first intention to add support for standard BTP IdP login (w/ username + password). Please also take into consideration extending the documentation how it's supposed to work with multi remote configuration when one browser instance would use the BTP IdP login and the other browser instance won't.