mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-01-12 22:53:42 +08:00
24 lines
1004 B
TypeScript
24 lines
1004 B
TypeScript
import { expect, test } from '../fixtures/base';
|
|
import Onboarding from '../pages/onboarding';
|
|
import Wallet from '../pages/wallet';
|
|
|
|
const strongPW = Onboarding.generateSecurePasswordCrypto();
|
|
|
|
test.describe('Stacking Tab', () => {
|
|
test('Check stacking Tab', async ({ page, extensionId }) => {
|
|
const onboardingPage = new Onboarding(page);
|
|
const wallet = new Wallet(page);
|
|
await onboardingPage.createWalletSkipBackup(strongPW);
|
|
await page.goto(`chrome-extension://${extensionId}/popup.html`);
|
|
await wallet.checkVisualsStartpage();
|
|
await wallet.navigationStacking.click();
|
|
await expect(page.url()).toContain('stacking');
|
|
await expect(wallet.buttonStartStacking).toBeVisible();
|
|
await expect(wallet.headingStacking).toBeVisible();
|
|
await expect(wallet.containerStackingInfo).toHaveCount(4);
|
|
await expect(wallet.infoTextStacking).toBeVisible();
|
|
await expect(wallet.labelAccountName).toBeVisible();
|
|
await expect(wallet.buttonMenu).toBeVisible();
|
|
});
|
|
});
|