From 6c684379f4e5671bbd22339cabc4b3ecad1feefb Mon Sep 17 00:00:00 2001 From: xu11 <5661458+pengpeng11@user.noreply.gitee.com> Date: Thu, 4 Jul 2024 11:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E4=BD=93=E8=B0=83=E6=95=B4=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=20&&=E6=B7=BB=E5=8A=A0README=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/e2e/README.md | 6 +++--- packages/e2e/__tests__/tests/index.test.ts | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/e2e/README.md b/packages/e2e/README.md index c6aade35c1..37eb054c82 100644 --- a/packages/e2e/README.md +++ b/packages/e2e/README.md @@ -3,7 +3,7 @@ 2.Install dependencies--yarn install 3.Run the package:e2e command 4.Run start to complete 100% synchronization -5.Run the test:e2e command +5.Run the test:e2e command (You can click neuron icon manually if Launch Neuron is slow) *Regression use cases are divided into ordinary wallets and hardware wallets, and the two chunks need to be operated separately, especially hardware wallets, which involve manually synchronizing the operation of hardware wallets. 【ordinary wallets】的test cases @@ -42,7 +42,7 @@ testcases: 2.Comment out create ordinary wallet to case 3.ledger open the ckb application -*When the neuron program is throw exception like (database lock/output dead/network abnormal) -/ Garbage data generated when the program is abnormal, etc.), the automation will automatically exit. +*When the neuron program is throw exception like (database lock/output dead/network abnormal/garbage data generated when the program is abnormal, etc.), the automation will automatically exit. +![img.png](img.png) diff --git a/packages/e2e/__tests__/tests/index.test.ts b/packages/e2e/__tests__/tests/index.test.ts index 2147f05637..6da51f4b86 100644 --- a/packages/e2e/__tests__/tests/index.test.ts +++ b/packages/e2e/__tests__/tests/index.test.ts @@ -91,7 +91,7 @@ test("Create Wallet", async () => { } }); -test.describe('overview page tests', () => { +/*test.describe('overview page tests', () => { test("send transaction", async () => { await page.waitForTimeout(10000); await page.waitForSelector('.syncStatus_synced__JM5ln'); @@ -109,7 +109,7 @@ test.describe('overview page tests', () => { test("amend transaction ", async () => { - await page.locator('//*[@id="root"]/div/div/div[2]/div[1]/table/tbody/tr[1]/td[7]').click(); + await page.locator('//!*[@id="root"]/div/div/div[2]/div[1]/table/tbody/tr[1]/td[7]').click(); await page.getByRole('button', {name: '修改'}).click(); await page.getByTitle('发送').click(); await page.locator("id=password").fill('Aa111111'); @@ -169,7 +169,7 @@ test("check transaction history", async () => { await page.waitForSelector('//!*[@id="root"]/div/dialog[1]/div/button'); await page.getByRole('button', {name: '确认'}).click(); console.log('查历史记录成功!'); -}); +});*/ //所有交易完成才能执行以下操作 test.describe('实验性功能', () => { @@ -191,7 +191,6 @@ test.describe('实验性功能', () => { await page.waitForTimeout(20000); await expect(page.getByText('te' + tp, {exact: true})).toBeVisible(); console.log('创建sudt账号成功!'); - }); @@ -209,6 +208,7 @@ test.describe('实验性功能', () => { test("send ", async () => { + //上笔记录为完成状态 await page.getByRole('button', {name: '转账'}).first().click(); await page.locator("id=address").fill("ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqggcska5fafwdlfw9g0cttk5uzdcvuqj4qqz5d7q"); await page.locator("id=amount").fill("0.001");