Page Object pattern for testing React components