more tests for the frontend

This commit is contained in:
filipriec
2025-06-26 20:25:59 +02:00
parent 234613f831
commit 7b7f3ca05a
2 changed files with 3 additions and 4 deletions

View File

@@ -1016,4 +1016,4 @@ async fn test_null_and_empty_values(#[future] form_test_context: FormTestContext
}
include!("form_request_tests2.rs");
// include!("form_request_tests3.rs");
include!("form_request_tests3.rs");

View File

@@ -1,5 +1,4 @@
// form_request_tests3.rs - Comprehensive and Robust Testing
use super::*;
// ========================================================================
// STEEL SCRIPT VALIDATION TESTS (HIGHEST PRIORITY)
@@ -612,7 +611,7 @@ async fn test_sql_injection_attempts(#[future] form_test_context: FormTestContex
#[rstest]
#[tokio::test]
async fn test_concurrent_operations_with_same_data(#[future] form_test_context: FormTestContext) {
let mut context = form_test_context.await;
let context = form_test_context.await;
skip_if_backend_unavailable!();
// Test multiple concurrent operations with identical data
@@ -620,7 +619,7 @@ async fn test_concurrent_operations_with_same_data(#[future] form_test_context:
let num_tasks = 10;
for i in 0..num_tasks {
let context_clone = context.clone();
let mut context_clone = context.clone();
let handle = tokio::spawn(async move {
let mut data = HashMap::new();
data.insert("firma".to_string(), create_string_value("Concurrent Identical"));