@@ -84,7 +84,7 @@ test.describe('Checkout Security - Price Tampering Prevention', () => {
8484 expect ( orderTotal ) . toMatch ( / \\ $ [ 2 - 9 ] \\ d + \\ .\\ d { 2 } / ) ; // At least $20+
8585 } ) ;
8686
87- test ( 'should ignore client-submitted subtotal/tax/shipping' , async ( { page, request } ) => {
87+ test ( 'should ignore client-submitted subtotal/tax/shipping' , async ( { page } ) => {
8888 // Get actual product price from product page
8989 await page . goto ( '/products/test-product' ) ;
9090 const actualPriceText = await page . locator ( '[data-testid="product-price"]' ) . textContent ( ) ;
@@ -211,12 +211,12 @@ test.describe('Checkout Security - Price Tampering Prevention', () => {
211211 expect ( errorText ) . toMatch ( / p a y m e n t / i) ;
212212 } ) ;
213213
214- test ( 'should use atomic transactions for checkout' , async ( { page, request } ) => {
214+ test ( 'should use atomic transactions for checkout' , async ( { page } ) => {
215215 // This test verifies that if payment validation fails,
216216 // the entire checkout is rolled back (no order created, no inventory decremented)
217217
218218 // Get initial product stock
219- const productPage = await page . goto ( '/products/test-product' ) ;
219+ await page . goto ( '/products/test-product' ) ;
220220 const initialStockText = await page . locator ( '[data-testid="stock-quantity"]' ) . textContent ( ) ;
221221 const initialStock = parseInt ( initialStockText ?. replace ( / [ ^ 0 - 9 ] / g, '' ) || '0' ) ;
222222
@@ -274,7 +274,7 @@ test.describe('Checkout Security - Price Tampering Prevention', () => {
274274} ) ;
275275
276276test . describe ( 'Checkout Security - Multi-Tenant Isolation' , ( ) => {
277- test ( 'should prevent checkout with products from different store' , async ( { page, request } ) => {
277+ test ( 'should prevent checkout with products from different store' , async ( { page } ) => {
278278 // Login to Store A
279279 await page . goto ( '/' ) ;
280280 await page . click ( '[data-testid="login-link"]' ) ;
0 commit comments