Updates ui.cover test to check screen dimensions before expecting window cover dimensions. PR 282310.