Urgent.News

What's breaking now, across thousands of outlets.

Tech

Playwright Email Tests Need a Cleanup Contract

Email-based end-to-end tests often look flaky for the wrong reason. A signup test creates a user, waits for a verification message, and sometimes finds an email that belongs to a previous run. The test may pass with the wrong message, fail because the inbox is full of old messages, or become slower as more CI jobs share the same mailbox. In my QA work, I treat the mailbox as a test resource with…

End-to-end email tests using email-based fixtures can be unreliable due to flakiness. This often occurs when a test creates a user, waits for a verification message, and encounters an email from a previous run. The issue arises from the test not properly handling the lifecycle of the mailbox, leading to stale messages, inbox overflow, and slower CI jobs.

To address this, a mailbox should be treated as a test resource with a clear ownership contract. This contract should include details on who owns the mailbox (using run ID and worker ID), what can be read (filtering by recipient, subject, test ID, and time), how long it can live (with a lease expiry), and who cleans it up (the test should release it, with a scheduled reaper handling abandoned leases).

The email address alone is insufficient, as older messages may have matching subjects. To ensure reliable testing, each test mailbox should have an ownership contract that is observable in Playwright. This includes recording the state of the mailbox and attempting release in teardown. Important questions to consider are: who owns the mailbox, what can be read from it, how long it can live, and who cleans it up.

By implementing these practices, email testing can become a more reliable workflow, with failures becoming more actionable and easier to diagnose.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Using Curl

Curl is a command-line utility and underlying library (libcurl) used to transfer data across a wide range of network protocols, including HTTP, HTTPS, FTP, FTPS, SCP, SFTP, LDAP, MQTT, and more.

Using the Linux IP Command to Manage Server Network Interfaces

The ip command is a built-in Linux network management utility that offers a wide range of features and tools for managing network interfaces.

  • ip command consolidates functions of older Linux network tools.
  • Use ip link show to view all network interfaces and their states.
  • Configure IP addresses with ip addr add and manage MTU with ip link set.

Scanning for Open Ports and Vulnerabilities with Nmap

Nmap (Network Mapper) is an open-source network discovery tool that identifies hosts, services, and potential security issues.

  • Nmap is open-source tool for network discovery and vulnerability assessment
  • Install Nmap on Linux server with sudo privileges using package manager
  • Use Nmap's Scripting Engine to detect specific vulnerabilities like FTP anonymous login

Third VeloCloud Orchestrator Flaw Exploited in 2026: CVE-2026-114625 in a Pattern

Third VeloCloud Orchestrator Flaw Exploited in 2026: CVE-2026-114625 in a Pattern CVE-2026-114625 is the third VeloCloud Orchestrator vulnerability that Arista has reported as exploited since late…

  • Third critical vulnerability CVE-2026-114625 exploited in VeloCloud Orchestrator
  • SQL injection flaw allows low-level users to escalate to superuser operator
  • Arista patched hosted and dedicated orchestrators, but on-premises customers must apply fixes

Using Rsync to Transfer Files in Linux

Rsync is a file transfer tool for transferring and synchronizing files across systems. It's commonly used for backups, file mirroring, and updating files between local directories or remote servers.

  • Rsync efficiently transfers only file differences between source and destination.
  • Install Rsync using distribution-specific commands (e.g., sudo apt install rsync for Ubuntu/Debian).
  • Use rsync [OPTION] SRC DEST syntax to copy files or directories.

More from Thursday 22 October →