init
This commit is contained in:
		
							parent
							
								
									1b4ae5fa85
								
							
						
					
					
						commit
						392fb7487b
					
				| @ -18,7 +18,7 @@ const { faker } = require('@faker-js/faker/locale/zh_CN'); | ||||
| //   // Expects page to have a heading with the name of Installation.
 | ||||
| //   await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
 | ||||
| // });
 | ||||
| test('登录touch和h5,购买会员卡,到h5商城购买货品', async ({ | ||||
| test('登录touch和h5,创建顾客购买会员卡,使用顾客账号到h5商城购买货品', async ({ | ||||
| 	touchPage, | ||||
| 	h5Page, | ||||
| 	touchCustomerPage, | ||||
| @ -28,7 +28,7 @@ test('登录touch和h5,购买会员卡,到h5商城购买货品', async ({ | ||||
| 	const customer = new Customer(1, 1, { phone: phone }); | ||||
| 	await touchCustomerPage.createCustomer(customer); | ||||
| 
 | ||||
| 	//在touch页面购买会员卡
 | ||||
| 	await test.step('在touch页面购买会员卡', async () => { | ||||
| 		await touchPage.getByText('去开单').click(); | ||||
| 		await touchPage.locator('.more > .icon > svg').click(); | ||||
| 		await touchPage.getByText('去开卡').click(); | ||||
| @ -44,8 +44,9 @@ test('登录touch和h5,购买会员卡,到h5商城购买货品', async ({ | ||||
| 		await touchPage.getByLabel('结算签字').uncheck(); | ||||
| 		await touchPage.getByRole('button', { name: /结\s算/ }).click(); | ||||
| 		await touchPage.getByRole('button', { name: /跳\s过/ }).click(); | ||||
| 	}); | ||||
| 
 | ||||
| 	//在h5商城页面使用会员卡进行购买
 | ||||
| 	await test.step('登录h5,并且商城页面使用会员卡进行购买', async () => { | ||||
| 		await h5LoginPage.login(customer.phone); | ||||
| 		await h5Page.locator('.singIn_content > .iconfont').click(); | ||||
| 		await h5Page.locator('.get_btn').click(); | ||||
| @ -68,4 +69,5 @@ test('登录touch和h5,购买会员卡,到h5商城购买货品', async ({ | ||||
| 		await h5Page.getByText('确认支付').click(); | ||||
| 		await expect(h5Page.getByText('支付成功').first()).toBeVisible(); | ||||
| 		await expect(h5Page.getByText('查看订单')).toBeVisible(); | ||||
| 	}); | ||||
| }); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user