def METHOD_NAME(
    app_api_client,
    user_export_file,
    permission_manage_products,
    permission_manage_staff,
    permission_manage_apps,
    user_export_event,
):
    # given
    query = EXPORT_FILE_BY_APP_QUERY
    variables = {"id": graphene.Node.to_global_id("ExportFile", user_export_file.pk)}
    # when
    response = app_api_client.post_graphql(
        query,
        variables=variables,
        permissions=[
            permission_manage_products,
            permission_manage_apps,
        ],
    )
    # then
    content = get_graphql_content(response)
    data = content["data"]["exportFile"]
    assert data["status"] == JobStatus.PENDING.upper()
    assert data["createdAt"]
    assert data["updatedAt"]
    assert data["app"] is None
    assert not data["url"]
    assert len(data["events"]) == 1
    event = data["events"][0]
    assert event["date"]
    assert event["message"] == user_export_event.parameters.get("message")
    assert event["type"] == ExportEvents.EXPORT_FAILED.upper()
    assert event["app"] is None