Skip to content

[QA] Add Cypress coverage for Network Tokenization on bankofamerica #13450

Description

@HS-QUALIBOT

QA Test Coverage: Network Tokenization

Summary

Network tokenization is a card credential storage method managed by payment networks (Visa, Mastercard, Amex). Testing involves creating payments with network_tokenization_credentials and verifying network_token in the response.

Connector

bankofamerica

Test Cases Added

  1. Happy Path: Enable Network Tokenization → Create Payment Intent → Confirm Payment → Retrieve Payment
  2. Edge Case: Tokenize card via /payment_methods/tokenize-card (expect 500 HE_00 with fake credentials)
  3. Edge Case: Reset business profile to disable network tokenization (cleanup)

Changed Files

File Change
cypress/e2e/spec/Payment/57-NetworkTokenization.cy.js NEW — spec covering Network Tokenization happy path + negative cases
cypress/e2e/configs/Payment/BankOfAmerica.js MODIFIED — added NetworkTokenization config key under card_pm
cypress/e2e/configs/Payment/Commons.js MODIFIED — added NetworkTokenization config key under card_pm
cypress/e2e/configs/Payment/Utils.js MODIFIED — added NETWORK_TOKENIZATION: ["bankofamerica"] in CONNECTOR_LISTS.INCLUDE
cypress/support/commands.js MODIFIED — added tokenizeCardTest command for POST /payment_methods/tokenize-card

Config Keys Added

  • Commons.js: NetworkTokenization under card_pm (getCustomExchange wrapper)
  • BankOfAmerica.js: NetworkTokenization under card_pm (500 HE_00 response from API_TRACE)
  • Utils.js: NETWORK_TOKENIZATION: ["bankofamerica"] in CONNECTOR_LISTS.INCLUDE

New Command

  • tokenizeCardTest in commands.js — POST /payment_methods/tokenize-card with admin API key

Runner Results

RUNNER_RESULT:
  Connector: bankofamerica
  SpecFile: cypress/e2e/spec/Payment/57-NetworkTokenization.cy.js
  PrereqsUsed: spec/Payment/01-,02-,03-
  TotalTests: 9
  Passed: 9
  Failed: 0
  Skipped: 0
  OverallStatus: PASS
  Failures: []
  SkippedTests: []
  FlakeyTests: []
  BlockedReasons: []

Parent Issue

Paperclip: TESAAA-216 — Network Tokenization

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions