mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: format e2e test
This commit is contained in:
@@ -24,22 +24,16 @@ test.describe('Integrity', () => {
|
|||||||
|
|
||||||
await page.goto('/admin/maintenance');
|
await page.goto('/admin/maintenance');
|
||||||
|
|
||||||
const count = page.getByText('Untracked Files')
|
const count = page.getByText('Untracked Files').locator('..').locator('..').locator('div').nth(1);
|
||||||
.locator('..')
|
|
||||||
.locator('..')
|
|
||||||
.locator('div')
|
|
||||||
.nth(1);
|
|
||||||
|
|
||||||
const previousCount = parseInt(await count.textContent() ?? '');
|
const previousCount = parseInt((await count.textContent()) ?? '');
|
||||||
|
|
||||||
await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked1.png`);
|
await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked1.png`);
|
||||||
|
|
||||||
const checkButton = page.getByText('Integrity Report')
|
|
||||||
.locator('..')
|
|
||||||
.getByRole('button', { name: 'Check All' });
|
|
||||||
|
|
||||||
await checkButton.click();
|
const checkButton = page.getByText('Integrity Report').locator('..').getByRole('button', { name: 'Check All' });
|
||||||
await expect(checkButton).toBeEnabled();
|
|
||||||
|
await checkButton.click();
|
||||||
|
await expect(checkButton).toBeEnabled();
|
||||||
|
|
||||||
await expect(count).toContainText((previousCount + 1).toString());
|
await expect(count).toContainText((previousCount + 1).toString());
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user