Daily updates from Odoo
Thursday, June 6, 2024
1 change · saas-17.2
Resolved issues and error corrections
This fix keeps automated web tours from stopping unexpectedly when an optional page element is not found. It restores more forgiving behavior, helping internal testing and guided flows run more reliably.
Original PR description
This commit [1] introduces `queryOne` to find element nodes in DOM. But, if `queryOne` fails to find the element it throws error which breaks the tour which wasn't the case before this change was introduced. There might be some scenarios where it might not affect if the node is found or not, but because of `queryOne` the tour will fail. So, to fix this we use `queryFirst` which doesn't throw error if it fails to find the node. 1: c0f3bdb928db5a119817710e260edfda9a2f40ac --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr