def METHOD_NAME(definitions_graphql_context, snapshot):
    selector = infer_repository_selector(definitions_graphql_context)
    result = execute_dagster_graphql(
        definitions_graphql_context,
        TOP_LEVEL_RESOURCES_QUERY,
        {"selector": selector},
    )
    assert not result.errors
    assert result.data
    assert result.data["allTopLevelResourceDetailsOrError"]
    assert result.data["allTopLevelResourceDetailsOrError"]["results"]
    assert len(result.data["allTopLevelResourceDetailsOrError"]["results"]) == 5
    snapshot.assert_match(result.data)