fix: queue page tests use Get Element States instead of disabled attribute
Task 24 fix. Robot tests now use Get Element States to check button enabled state, which works reliably. Also added 100ms delay after auth to ensure token availability, and error handling in loadQueueData. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -46,16 +46,18 @@ Queue Stats Cards Display Zero Initially
|
||||
# ---------------------------------------------------------------------------
|
||||
Start Queue Button
|
||||
[Documentation] Click start queue and verify button state changes.
|
||||
${disabled}= Get Attribute id=start-queue-btn disabled
|
||||
IF '${disabled}' != 'true'
|
||||
${states}= Get Element States id=start-queue-btn
|
||||
${enabled}= Evaluate 'enabled' in $states
|
||||
IF $enabled
|
||||
Click id=start-queue-btn
|
||||
Wait For Elements State id=stop-queue-btn visible timeout=3s
|
||||
END
|
||||
|
||||
Stop Queue Button
|
||||
[Documentation] Click stop queue and verify button state changes.
|
||||
${disabled}= Get Attribute id=stop-queue-btn disabled
|
||||
IF '${disabled}' != 'true'
|
||||
${states}= Get Element States id=stop-queue-btn
|
||||
${enabled}= Evaluate 'enabled' in $states
|
||||
IF $enabled
|
||||
Click id=stop-queue-btn
|
||||
Wait For Elements State id=start-queue-btn visible timeout=3s
|
||||
END
|
||||
@@ -65,8 +67,9 @@ Stop Queue Button
|
||||
# ---------------------------------------------------------------------------
|
||||
Clear Completed Confirmation
|
||||
[Documentation] Click clear completed and verify confirmation modal appears.
|
||||
${disabled}= Get Attribute id=clear-completed-btn disabled
|
||||
IF '${disabled}' != 'true'
|
||||
${states}= Get Element States id=clear-completed-btn
|
||||
${enabled}= Evaluate 'enabled' in $states
|
||||
IF $enabled
|
||||
Click id=clear-completed-btn
|
||||
Element Should Be Visible id=confirm-modal
|
||||
Element Text Should Contain id=confirm-modal clear
|
||||
@@ -76,8 +79,9 @@ Clear Completed Confirmation
|
||||
|
||||
Clear Failed Confirmation
|
||||
[Documentation] Click clear failed and verify confirmation modal appears.
|
||||
${disabled}= Get Attribute id=clear-failed-btn disabled
|
||||
IF '${disabled}' != 'true'
|
||||
${states}= Get Element States id=clear-failed-btn
|
||||
${enabled}= Evaluate 'enabled' in $states
|
||||
IF $enabled
|
||||
Click id=clear-failed-btn
|
||||
Element Should Be Visible id=confirm-modal
|
||||
Element Text Should Contain id=confirm-modal clear
|
||||
@@ -90,8 +94,9 @@ Clear Failed Confirmation
|
||||
# ---------------------------------------------------------------------------
|
||||
Retry All Failed
|
||||
[Documentation] Click retry all and verify UI feedback.
|
||||
${disabled}= Get Attribute id=retry-all-btn disabled
|
||||
IF '${disabled}' != 'true'
|
||||
${states}= Get Element States id=retry-all-btn
|
||||
${enabled}= Evaluate 'enabled' in $states
|
||||
IF $enabled
|
||||
Click id=retry-all-btn
|
||||
Toast Should Contain retry
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user