Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGoogle Cloud Tech: Gemini is coming to your city(24.09.2026 um 15:00 Uhr)
AI & KI NachrichtenGoogle’s latest moonshot to put machine learning in space(24.09.2026 um 15:12 Uhr)
Windows Tipps & SecurityPoll: What's your favorite Surface of 2026?(24.09.2026 um 14:58 Uhr)
Sichere ProgrammierungStreaming Materialized Views for Live Read Models (2026)(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA Day Is Not 86400 Seconds: The DST Bug in Your Date Math(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungSetting up Traefik: reverse proxy with automatic HTTPS(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA 200 OK response does not prove a secret leak(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungHow hot do you like it?(24.09.2026 um 15:05 Uhr)
YouTube Security VideosGoogle Cloud Tech: Gemini is coming to your city(24.09.2026 um 15:00 Uhr)
AI & KI NachrichtenGoogle’s latest moonshot to put machine learning in space(24.09.2026 um 15:12 Uhr)
Windows Tipps & SecurityPoll: What's your favorite Surface of 2026?(24.09.2026 um 14:58 Uhr)
Sichere ProgrammierungStreaming Materialized Views for Live Read Models (2026)(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA Day Is Not 86400 Seconds: The DST Bug in Your Date Math(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungSetting up Traefik: reverse proxy with automatic HTTPS(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungA 200 OK response does not prove a secret leak(24.09.2026 um 15:02 Uhr)
Sichere ProgrammierungHow hot do you like it?(24.09.2026 um 15:05 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

The new Cypress features you should be using

End-to-end testing has evolved. Today, Cypress offers more than just a slick UI and an intuitive syntax, it now comes packed with powerful features that make tests faster, more realistic and easier to debug. In this article, we’ll dive i…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

End-to-end testing has evolved. Today, Cypress offers more than just a slick UI and an intuitive syntax, it now comes packed with powerful features that make tests faster, more realistic and easier to debug.



In this article, we’ll dive into three of the most exciting additions to Cypress:





  • cy.session() — for smarter state caching


  • cy.press() — for realistic keyboard navigation


  • cy.stop() — for precise control of test execution



Whether you're scaling tests across CI, validating accessibility flows or debugging a tricky edge case, these new commands will upgrade your test suite.









cy.session(): cache once, reuse everywhere



We’ve all repeated login flows in every test:




beforeEach(() => {
cy.visit('/login');
cy.get('input[name="email"]').type('[email protected]');
cy.get('input[name="password"]').type('passwordExample');
cy.get('button[type="submit"]').click();
});






It works, but it’s slow. And flaky.

cy.session() solves this by caching browser state (like cookies and localStorage) after a one-time setup.





How to use it:





beforeEach(() => {
cy.session('admin-session', () => {
cy.request('POST', '/api/login', {
email: '[email protected]',
password: 'admin123'
}).then((res) => {
window.localStorage.setItem('auth_token', res.body.token);
});
});
});





Now your tests run faster and skip repeated login steps. Cypress restores the session seamlessly between tests in the same spec.




Bonus: If you're using Cypress Cloud, session state is even visible in replays.








cy.press(): simulate real keyboard navigation



Testing keyboard behavior used to feel like a workaround. cy.type('{tab}') could only go so far, it didn’t trigger real focus movement in most browsers.



Now Cypress supports cy.press(), a new command designed for real keyboard event simulation (currently supporting Tab).





Perfect for:




  • Testing keyboard accessibility

  • Navigating forms

  • Validating focus order



cy.get('input[name="email"]').focus();
cy.press(Cypress.Keyboard.Keys.TAB);
cy.focused().should('have.attr', 'name', 'password');







What you should know:




  • ✅ Works in Chromium and Firefox (v135+)

  • ❌ Not yet supported in WebKit (e.g., Safari)

  • ⚠️ Currently only supports Tab, more keys coming soon



It’s a big win for accessibility-first development and progressive enhancement strategies.







cy.stop(): pause Cypress execution programmatically



Imagine this: your test is halfway through, and you want to inspect the DOM, view state or manually interact with the app before continuing.



cy.stop() lets you pause test execution at any point, from code.





Example:





cy.visit('/dashboard');
cy.get('.notification').should('be.visible');
cy.stop(); // Open Cypress runner and inspect manually





This is incredibly useful for:




  • Debugging

  • Live demos

  • Investigating CI failures



You don’t need to add breakpoints manually anymore or pause via DevTools — Cypress now supports it natively.




Pro tip: Use it alongside .only and .debug() for powerful test inspection sessions.






Bonus: use cy.stop() in afterEach() to halt further test execution



In some scenarios, especially in CI environments or resource-intensive apps, you might want to stop the entire suite after a certain test runs, for example, if a critical failure occurs or if you're debugging and don’t want Cypress to continue running all remaining tests.




afterEach(() => {
// Stop further tests from running
cy.stop();
});






This can be helpful when:




  • You’re investigating a specific test failure and want to reduce test time

  • You’ve already hit a known issue and want to skip everything else

  • You’re preventing high memory or CPU usage in CI after a failure



It gives you fine-grained control over your test pipeline without needing to reconfigure your runner or manually skip specs.









Real-world combo: use all three



Here’s what a more modern, robust Cypress test could look like:




describe('Keyboard-first login flow', () => {
beforeEach(() => {
cy.session('admin-session', () => {
cy.request('POST', '/api/login', {
email: '[email protected]',
password: 'admin123'
}).then(({ body }) => {
window.localStorage.setItem('auth_token', body.token);
});
});
});

it('should navigate through the login form with keyboard', () => {
cy.visit('/login');
cy.get('input[name="email"]').focus();
cy.press(Cypress.Keyboard.Keys.TAB);
cy.focused().should('have.attr', 'name', 'password');
});

it('should pause before interacting with dashboard', () => {
cy.visit('/dashboard');
cy.stop(); // Inspect DOM or state here
cy.contains('Welcome, admin');
});
});






This test:




  • Logs in once using cy.session()

  • Simulates keyboard navigation with cy.press()

  • Pauses for inspection with cy.stop()



Clean. Performant. Inspectable.









Conclusion



These new Cypress features are small additions, but they enable big wins:




  • Shorter, faster tests

  • Realistic user interaction simulation

  • Easier debugging and flow validation



If you haven’t tried them yet, now’s the time to experiment.



Cypress isn’t just about writing tests. It’s about creating confidence through repeatable, human-like workflows. And these features bring us closer than ever.

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - The new Cypress features you should be using
id: b36197a6-b032-43b8-ada2-ad9fab32c9cf
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "The new Cypress features you s" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich The new Cypress features you should be u.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten The new Cypress features you should be using

Thematisch verwandte Begriffe: Cypress, features, should, using · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97152 | Nanomsg versions 0.5-beta through 1.x before 1.2.3 has a remotely exploi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick