def METHOD_NAME(self):
    self.login_test1()
    doc1 = self.create_doc().document
    p1 = doc1.add_paragraph("Par")
    p2 = doc1.add_paragraph(text="", attrs={"rd": doc1.doc_id, "rp": p1.get_id()})
    p3 = doc1.add_paragraph(text="", attrs={"rd": doc1.doc_id, "rp": p2.get_id()})
    doc1.modify_paragraph(
        p1.get_id(), "", new_attrs={"rd": doc1.doc_id, "rp": p3.get_id()}
    )
    tree = self.get(f"/view/{doc1.doc_id}", as_tree=True)
    result = tree.cssselect(".parContent > span.error")
    self.assertEqual(3, len(result))
    self.assertEqual(
        f"Infinite referencing loop detected: {doc1.doc_id}:{p1.get_id()} -> {doc1.doc_id}:{p3.get_id()} -> {doc1.doc_id}:{p2.get_id()} -> {doc1.doc_id}:{p1.get_id()}",
        result[0].text,
    )