fix: address PR 48 audit 667 lifecycle and legacy rule gaps
Core regression / Python core, intervention UI and release configuration (push) Successful in 6m54s
Core regression / JavaScript syntax (push) Successful in 8s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 5m22s
Core regression / JavaScript syntax (pull_request) Successful in 7s
Core regression / Python core, intervention UI and release configuration (push) Successful in 6m54s
Core regression / JavaScript syntax (push) Successful in 8s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 5m22s
Core regression / JavaScript syntax (pull_request) Successful in 7s
This commit is contained in:
1 parent
65f3a9c728
commit
e772723b4e
11 files changed
+386
-45
No files matched your search
@@ -9,7 +9,7 @@ from test_ui_remediation import window
|
||||
|
||||
|
||||
@pytest.mark.parametrize('scale,saved,decorated', [(1.25, False, False), (1.5, False, False),
|
||||
(1.5, True, False), (1.5, False, True)])
|
||||
(1.5, True, False), (1.5, False, True), (3.0, False, True)])
|
||||
def test_first_and_restored_windows_fit_scaled_workarea(window, qtbot, monkeypatch, scale, saved, decorated):
|
||||
area = QRect(0, 0, int(1920 / scale), int(1032 / scale))
|
||||
screen = SimpleNamespace(availableGeometry=lambda: area, logicalDotsPerInch=lambda: 96 * scale,
|
||||
@@ -30,6 +30,11 @@ def test_first_and_restored_windows_fit_scaled_workarea(window, qtbot, monkeypat
|
||||
QApplication.processEvents()
|
||||
assert area.contains(window.frameGeometry()), (area, window.frameGeometry(), window.minimumSize())
|
||||
for button in (window.plan_panel.save_button, window.run_panel.quick_run_button, window.task_list.new_button):
|
||||
if scale == 3.0:
|
||||
window.workspace_scroll.ensureWidgetVisible(button, 0, 0)
|
||||
QApplication.processEvents()
|
||||
point = button.mapTo(window.workspace_scroll.viewport(), button.rect().bottomRight())
|
||||
assert window.workspace_scroll.viewport().rect().contains(point)
|
||||
point = button.mapTo(window, button.rect().bottomRight())
|
||||
assert window.rect().contains(point), (button.objectName(), point, window.size())
|
||||
|
||||
|
||||
Reference in new issue
Block a user