Don't use the link click path

This commit is contained in:
Veronica K. B. Olsen committed 2020-09-24 22:14:56 +02:00
1 parent 3c4c60da45
commit 19aa3c0739
1 file changed
+3 -2
+3 -2
View File
@@ -8,7 +8,7 @@ from shutil import copyfile
from nwtools import cmpFiles
from os import path
from PyQt5.QtCore import Qt, QPoint
from PyQt5.QtCore import Qt, QUrl, QPoint
from PyQt5.QtGui import QTextCursor
from PyQt5.QtWidgets import qApp, QAction, QTreeWidgetItem
@@ -410,7 +410,8 @@ def testDocViewer(qtbot, nwLipsum, nwTemp):
assert nwGUI.docViewer.setCursorPosition(27)
nwGUI.docViewer._makeSelection(QTextCursor.WordUnderCursor)
theRect = nwGUI.docViewer.cursorRect()
qtbot.mouseClick(nwGUI.docViewer.viewport(), Qt.LeftButton, pos=theRect.center(), delay=100)
# qtbot.mouseClick(nwGUI.docViewer.viewport(), Qt.LeftButton, pos=theRect.center(), delay=100)
nwGUI.docViewer._linkClicked(QUrl("#char=Bod"))
assert nwGUI.docViewer.theHandle == "4c4f28287af27"
# Click mouse nav buttons