feat(testing): read fragment to select layout