So, I think this test would be more straightforward if instead of using a red/green thing to assert the order, you just typed numbers into the boxes and checked the numbers were in the right order. (The reference can be created with inline-block.) This will also make it really easy to create variations that test other aspects of order, like flex-direction: reverse, or the 'order' property. Or even crazy combinations of negative margins :)