Skip to Content

Merged from upstream 20 261121 01

Killed 128m merged
PR
#1355
PR Author
David Tran
Committer
David Tran
Commit
1654a681c64e
Branch
20.0
Age
Up-time
Commit message
[FIX] point_of_sale: make the customer popup test independent of the partners in the database

test_customer_popup preloads 15 partners and expects "Z partner to
search" and "Z partner to scroll" to be outside that window, then the
scrolled page to load them. This only holds when the database already
holds between 15 and about 30 active partners sorted before them. On a
database with only point_of_sale installed, the new partners are in the
preloaded window and the tour fails at "Check "Z partner to search" is
not in the partner list"; with many partners, or under the C collation
where lowercase names sort after "Z", the window or the scrolled page
does not match either.

Create the partners that fill the list in the test, and preload exactly
the partners that get_limited_partners_loading sorts before the new
ones.