Skip to content

Commit

Permalink
整体调整用例 &&添加README文档
Browse files Browse the repository at this point in the history
  • Loading branch information
xu11 committed Jul 4, 2024
1 parent ff32648 commit 6c68437
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)


8 changes: 4 additions & 4 deletions packages/e2e/__tests__/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down Expand Up @@ -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('实验性功能', () => {
Expand All @@ -191,7 +191,6 @@ test.describe('实验性功能', () => {
await page.waitForTimeout(20000);
await expect(page.getByText('te' + tp, {exact: true})).toBeVisible();
console.log('创建sudt账号成功!');

});


Expand All @@ -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");
Expand Down

0 comments on commit 6c68437

Please sign in to comment.