Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 752 Bytes

File metadata and controls

37 lines (28 loc) · 752 Bytes

e2e

E2E testing for dApps using Puppeteer + Nexus

Usage

open nexus extension page, get hello nexus message

 const nexusExtensionPath = "./build"
 const browser = await launchWithNexus(
            {nexusPath: nexusExtensionPath}
        )
const nexusWallet = await setUpNexus(browser, {mock: true})
const newPage = await nexusWallet.popup.getNewPage();
let res1 = await nexusWallet.popup.getHelloNexus(newPage);
expect(res1).to.be.include("Hello Nexus")

nexus methods

export type NexusWallet = {
    popup: PopupPageHelper;
    getNotificationPage: () => Promise<Page>
    close: () => void
}

test

run test after start e2e-web

npm i 
npm run test