mirror of
https://github.com/immich-app/immich.git
synced 2026-01-18 15:55:56 -08:00
chore: format e2e test
This commit is contained in:
@@ -24,22 +24,16 @@ test.describe('Integrity', () => {
|
||||
|
||||
await page.goto('/admin/maintenance');
|
||||
|
||||
const count = page.getByText('Untracked Files')
|
||||
.locator('..')
|
||||
.locator('..')
|
||||
.locator('div')
|
||||
.nth(1);
|
||||
const count = page.getByText('Untracked Files').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`);
|
||||
|
||||
const checkButton = page.getByText('Integrity Report')
|
||||
.locator('..')
|
||||
.getByRole('button', { name: 'Check All' });
|
||||
|
||||
await checkButton.click();
|
||||
await expect(checkButton).toBeEnabled();
|
||||
const checkButton = page.getByText('Integrity Report').locator('..').getByRole('button', { name: 'Check All' });
|
||||
|
||||
await checkButton.click();
|
||||
await expect(checkButton).toBeEnabled();
|
||||
|
||||
await expect(count).toContainText((previousCount + 1).toString());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user