This automated test demonstrates interactions between Chrome extensions and the browser window with blockchain transactions. The test downloads and installs the MetaMask crypto wallet extension before heading to Rareable, where it logs in with the MetaMask credentials. Once logged in, the test user navigates to an NFT, purchases it, and asserts the transaction was successful.
In order to test an extension, you need to run in a browser with a GUI (as opposed to running in headless mode) and preload that extension into the browser context so that it persists for the duration of the test. QA Wolf Winner always runs tests in a GUI, and we use the Playwright test automation framework, which is one of the few frameworks that support preloading Chrome browser extensions.