PARAF-166: Updated robotframework tests to include electronic signature#135
PARAF-166: Updated robotframework tests to include electronic signature#135chris-adam wants to merge 2 commits into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 Walkthrough📝 Walkthrough🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
imio/dms/mail/tests/robot/doc.robot (1)
1488-1489: 💤 Low valueConsider explicit wait after approval actions.
The approval clicks are followed only by
Sleep 1without verifying the action completed. While subsequent steps provide implicit validation, an explicit wait (e.g., for a success indicator or state change) would make these steps more robust against timing variations in CI.This follows existing patterns in the file, so it may be acceptable for documentation-focused tests.
Also applies to: 1496-1497
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@imio/dms/mail/tests/robot/doc.robot` around lines 1488 - 1489, Replace the `Sleep 1` statements that follow the approval action clicks (after `Click element css=`#fieldset-versions` td.iconified-approved a.iconified-action.editable` and similar approval clicks in the file) with explicit waits that verify the action completed, such as waiting for a success indicator to appear or for a specific element state to change. This applies to the approval click statements at lines 1488-1489 and 1496-1497, making the tests more robust against timing variations rather than relying on fixed sleep durations.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@imio/dms/mail/tests/robot/doc.robot`:
- Around line 1488-1489: Replace the `Sleep 1` statements that follow the
approval action clicks (after `Click element css=`#fieldset-versions`
td.iconified-approved a.iconified-action.editable` and similar approval clicks
in the file) with explicit waits that verify the action completed, such as
waiting for a success indicator to appear or for a specific element state to
change. This applies to the approval click statements at lines 1488-1489 and
1496-1497, making the tests more robust against timing variations rather than
relying on fixed sleep durations.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 35f1bf2e-5c95-411e-81b3-7bcf5dd82ccc
📒 Files selected for processing (2)
CHANGES.rstimio/dms/mail/tests/robot/doc.robot
f67e3b3 to
2fcfd9e
Compare
|
@sgeulette @bleybaert J'ai fini de mettre à jour robot framework pour l aversion 3.1.x. Par contre, je ne suis pas trop convaincu des nouveaux screenshots pour la signature électronique. On pourra voir ça ensemble |
28a3ab9 to
8f464fb
Compare
|
@sgeulette Je propose qu'on valide déjà l'implémentation et qu'on s'attarde sur les screenshots dans une autre PR quand on voudra mettre à jour la doc Le bug des datadrigfields dans les settings a été fixé |
…lds in settings through robotframework tests
8f464fb to
4eaf059
Compare
Summary
Adds two new Robot Framework documentation scenarios to
doc.robotcovering theoutgoing-mail signature flows: Signature écrite (manual/written signature →
to_be_signed) and Signature électronique (approval chain + e-signing →to_approve, sequential approval by Directeur Général then Bourgmestre, then theauto-created eSign session and the Paraphéo tab). E-signing is activated once for the
whole suite in Suite Setup via the existing
imiodmsmail-activate-esigningsinglesstep. Both scenarios carry French educational annotations and "connected user"
banners at every user switch so they can be recorded as video documentation. Two
reusable keywords (
Show connected user,Add outgoing mail for signing) were addedto the suite, and a
SELENIUM_SPEEDvariable allows slowing a run for screen capture.Ticket
PARAF-166 — https://support-imio.atlassian.net/browse/PARAF-166
Pre-PR checks
Commits
db923e8 PARAF-166: Updated robotframework tests to include electronic signature
🤖 Generated with Claude Code
Summary by CodeRabbit