This repository contains end-to-end UI tests for the Blocktank Web Widget. The tests were written using Selenium WebDriver with JUnit 5 in Java and focus on validating core user flows and edge cases.
- Inputs sats and expiry values
- Proceeds through the widget flow
- Verifies:
- Terms acceptance
- Pay button functionality
- Lightning invoice text contains
"Invoice" - On-chain tab shows
"Bitcoin Address"
- Tries to proceed without entering required inputs
- Verifies error:
"Minimum receiving capacity is 100000 sats"
- Verifies that a customer can view their orders via the "My Orders" menu
- Verifies that a customer can proceed to the Payment Page from "My Orders"
- Verifying that a customer can view Terms of Service before accepting
- Verifying that a customer can navigate to the Settings tab and select a preferred currency
- Verifying that the selected currency is retained when returning to the Home Page
- Verifying that a customer can navigate to the Support menu
- Loads default numbers on the initial home page view
- Might be confusing for potential customers who don’t understand what the field represents
- No indication if this is a mandatory option for proceeding
- Could confuse users unfamiliar with Lightning channel requirements
- Java 17+
- Maven or Gradle (if using a build tool)
- GeckoDriver installed and added to your system
PATH - Firefox browser installed
- Clone the repository and open it in your IDE
- Ensure
geckodriveris accessible from your system environment - Run the tests using JUnit (via your IDE or a build tool like Maven/Gradle)