chore: updates test/fields uploads test to check for value not text
This commit is contained in:
@@ -851,7 +851,7 @@ describe('fields', () => {
|
||||
|
||||
// create a jpg upload
|
||||
await page.locator('.file-field__upload input[type="file"]').setInputFiles(path.resolve(__dirname, './collections/Upload/payload.jpg'));
|
||||
await expect(page.locator('.file-field .file-field__filename')).toContainText('payload.jpg');
|
||||
await expect(page.locator('.file-field .file-field__filename')).toHaveValue('payload.jpg');
|
||||
await page.locator('#action-save').click();
|
||||
await wait(200);
|
||||
await expect(page.locator('.Toastify')).toContainText('successfully');
|
||||
|
||||
Reference in New Issue
Block a user