test : Update Script

This commit is contained in:
Linpiing 2024-09-26 11:05:54 +07:00
parent 9254c0183e
commit 297ff8c675
73 changed files with 2055 additions and 398 deletions

View file

@ -15,7 +15,7 @@ test.afterAll(async () => {
test('Login', async () => {
// Login
await page.goto('http://192.168.1.90:20001/');
await page.goto('http://192.168.1.62:20101/');
await expect(page).toHaveTitle(/^Sign in to /);
await page.fill("input[name='username']", 'admin');
await page.fill("input[name='password']", '1234');
@ -24,10 +24,11 @@ test('Login', async () => {
// await page.click('id=acceptBtn');
});
test('Selete Filter Manage Customer Active', async () => {
test('ตรวจสอบดูรายละเอียดบุคคลธรรมดาโดยการคลิกไอคอนดวงตา', async () => {
await page.click('id=menu-icon-customer-management');
await page.click('id=btn-eye-โคโม่');
await page.waitForTimeout(2000);
await page.click("(//button[@id='closeDialog'])[1]");
await page.waitForTimeout(2000);
try {
} catch (error) {
console.error('เกิดข้อผิดพลาดในการทดสอบ', error);
throw error;
}
});