focus different attachment first

This commit is contained in:
Simon Knott 2024-11-04 10:23:24 +01:00
parent 9a9dbf0996
commit ae84ea0f21
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -167,6 +167,7 @@ test('should link from attachment step to attachments view', async ({ runUITest
const panel = page.getByRole('tabpanel', { name: 'Attachments' }); const panel = page.getByRole('tabpanel', { name: 'Attachments' });
const attachment = panel.getByLabel('my-attachment'); const attachment = panel.getByLabel('my-attachment');
await page.getByText('attach "spacer-1"').click();
await expect(attachment).not.toBeInViewport(); await expect(attachment).not.toBeInViewport();
await page.getByText('attach "my-attachment"').click(); await page.getByText('attach "my-attachment"').click();
await expect(attachment).toBeInViewport(); await expect(attachment).toBeInViewport();