1package e2e23// Golden screens for arrays: a formula's array spilled beside the budget,4// with the active cell on a spilled value, and an array blocked by a cell5// in its way, its #REF! explained.67// sortedBudget is the budget with its amounts sorted, largest first,8// spilling from D2, and the active cell on a spilled amount.9func sortedBudget(s *session) {10 budget(s)11 s.keys("<f5>", "D2", "<enter>", "=SORT(A3:B5, 2, FALSE)", "<enter>", "<right>")12 s.waitFor("Spilled from D2")13}1415var arrayScreens = []screen{16 {name: "spill", setup: sortedBudget},17 {name: "spill-blocked", setup: func(s *session) {18 budget(s)19 s.keys("<f5>", "D4", "<enter>", "paid", "<enter>", "<f5>", "D2", "<enter>", "=SORT(A3:B5, 2, FALSE)", "<enter>", "<up>")20 s.waitFor("would overwrite data in D4")21 }},22}2324func init() {25 for _, sc := range arrayScreens {26 screens = append(screens, sc)27 sc.name += "-light"28 sc.opts.light = true29 screens = append(screens, sc)30 }31}