Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
test(connector): [Bambora] Add tests for 3DS (#1254)
Sakil Mostak295d41abba3f
diff --git a/crates/router/tests/connectors/bambora_ui.rs b/crates/router/tests/connectors/bambora_ui.rsnew file mode 100644index 0000000000..86b2f22352--- /dev/null+++ b/crates/router/tests/connectors/bambora_ui.rs@@ -0,0 +1,38 @@+use serial_test::serial;+use thirtyfour::{prelude::*, WebDriver};++use crate::{selenium::*, tester};++struct BamboraSeleniumTest;++impl SeleniumTest for BamboraSeleniumTest {+ fn get_connector_name(&self) -> String {+ "bambora".to_string()+ }+}++async fn should_make_3ds_payment(c: WebDriver) -> Result<(), WebDriverError> {+ let mycon = BamboraSeleniumTest {};+ mycon+ .make_redirection_payment(+ c,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/33"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::Click(By::Id("continue-transaction"))),+ Event::Assert(Assert::IsPresent("Google")),+ Event::Assert(Assert::Contains(+ Selector::QueryParamStr,+ "status=succeeded",+ )),+ ],+ )+ .await?;+ Ok(())+}++#[test]+#[serial]+fn should_make_3ds_payment_test() {+ tester!(should_make_3ds_payment);+}diff --git a/crates/router/tests/connectors/main.rs b/crates/router/tests/connectors/main.rsindex 30c526d357..bce3248415 100644--- a/crates/router/tests/connectors/main.rs+++ b/crates/router/tests/connectors/main.rs@@ -11,6 +11,7 @@ mod adyen_uk_ui;mod airwallex;mod authorizedotnet;mod bambora;+mod bambora_ui;mod bitpay;mod bluesnap;mod cashtocode;