55 lines
1.2 KiB
Markdown
55 lines
1.2 KiB
Markdown
## Task 9: Fix `Robot.Ui.Settings Modal.Edit Backup Settings`
|
|
|
|
**Test File:** `tests/robot/ui/settings_modal.robot`
|
|
|
|
**Error:**
|
|
```
|
|
No keyword with name 'Execute JavaScript' found.
|
|
```
|
|
|
|
**Context:**
|
|
Uses `Execute JavaScript` to scroll the modal:
|
|
```robot
|
|
Execute JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000
|
|
```
|
|
|
|
**Fix Instructions:**
|
|
Replace with Browser library's scroll method:
|
|
```robot
|
|
# Instead of Execute JavaScript, use:
|
|
Evaluate JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000
|
|
```
|
|
|
|
Or use Playwright's built-in scrolling:
|
|
```robot
|
|
# Scroll within the modal content area
|
|
Scroll css=#config-modal .modal-body down
|
|
```
|
|
|
|
---
|
|
|
|
## Task 10: Fix `Robot.Ui.Settings Modal.Edit NFO Settings`
|
|
|
|
**Test File:** `tests/robot/ui/settings_modal.robot`
|
|
|
|
**Error:**
|
|
```
|
|
No keyword with name 'Execute JavaScript' found.
|
|
```
|
|
|
|
**Same fix as Task 9.** Replace `Execute JavaScript` with `Evaluate JavaScript`.
|
|
|
|
---
|
|
|
|
## Task 11: Fix `Robot.Ui.Settings Modal.Create Config Backup`
|
|
|
|
**Test File:** `tests/robot/ui/settings_modal.robot`
|
|
|
|
**Error:**
|
|
```
|
|
No keyword with name 'Execute JavaScript' found.
|
|
```
|
|
|
|
**Same fix as Task 9.** Replace `Execute JavaScript` with `Evaluate JavaScript`.
|
|
|
|
--- |