Skip to content

Mobile Scan to Login UI Test #303

@agritheory

Description

@agritheory

Login by scanning user barcode
As a warehouse employee, I want to scan my badge to log in so that I don't have to type credentials.

  • BEAM Settings enable_scan_to_login = "All Users" or "Mobile Users Only"
  • Navigate to /login page
  • Scan user barcode
  • Redirected to /beam home page
  • Session authenticated as scanned user

Reject invalid login barcode
As a warehouse employee, I want invalid barcodes rejected at login so that unauthorized access is prevented.

  • Navigate to /login page
  • Scan non-user barcode (item, warehouse, etc.)
  • Error displayed: "Wrong barcode"
  • Remain on login page

Enforce mobile user role restriction
As a system administrator, I want scan-to-login restricted to mobile users when configured so that only authorized employees can use badge login.

  • BEAM Settings enable_scan_to_login = "Mobile Users Only"
  • User without "BEAM Mobile User" role scans badge
  • Error displayed: "Not Beam mobile user"
  • Login rejected

Enforce IP restriction
As a system administrator, I want scan-to-login restricted by IP address so that badge login only works on warehouse devices.

  • BEAM Settings restrict_ip configured
  • Scan from allowed IP, login succeeds
  • Scan from disallowed IP, error: "Network not available"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions