test: revise test cases

This commit is contained in:
hongboji 2023-10-11 14:56:16 +08:00
parent ef1b07e6a3
commit 86c4c199f6
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ test.describe('file manager', () => {
await createLocalStorage.storageName.fill(storageName);
await createLocalStorage.storagebaseURL.fill('/storage/uploadsFM01AA');
await createLocalStorage.storageType.click();
await page.getByText('Local storage').click();
await page.getByText('Local storage').nth(1).click();
await createLocalStorage.destination.fill('storage/uploadsFM01AA');
// await createLocalStorage.path.fill('');
// await createLocalStorage.defaultStorage.check();

View File

@ -20,14 +20,13 @@ test.describe('File manager', () => {
await createLocalStorage.storageName.fill(storageName);
await createLocalStorage.storagebaseURL.fill('/storage/uploadsFM02AA');
await createLocalStorage.storageType.click();
await page.getByText('Local storage').click();
await page.getByText('Local storage').nth(1).click();
await createLocalStorage.destination.fill('storage/uploadsFM02AA');
// await createLocalStorage.path.fill('');
// await createLocalStorage.defaultStorage.check();
// await createLocalStorage.deleteRecordRetentionFile.check();
await page.getByTestId('submit-action').click();
await expect(page.getByText(storageName)).toBeAttached();
await page.waitForTimeout(5000);
// 2、测试步骤点击“文件管理器”-“编辑”按钮,编辑标题,点击“确定”按钮
await page