fix: development port and file name case

This commit is contained in:
Methapon2001 2023-12-06 13:11:14 +07:00
parent f09f06096e
commit 3f29b65b2c
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -17,7 +17,7 @@ test.afterAll(async () => {
})
test('Login', async ({}) => {
await page.goto('http://localhost:27015/admin')
await page.goto('http://localhost:3010/admin')
await expect(page).toHaveTitle('Sign in to EDM')
await page.fill("input[name='username']", 'admin')
@ -83,7 +83,7 @@ test('Upload File', async () => {
await page.waitForTimeout(3000)
await expect(
page.locator(
"//div[@data-pathname='test-upload-file/test-upload-file/test-upload-file/test-upload.txt']",
"//div[@data-pathname='test-upload-file/test-upload-file/test-upload-file/file.txt']",
),
).toContainText(/test-upload-file/)
})