mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 01:44:24 +01:00
Fix frontend-linter issues
This commit is contained in:
parent
e553ae901e
commit
cf6ea2dbc1
|
@ -19,7 +19,7 @@ test.beforeAll(async ({browser}, workerInfo) => {
|
|||
test('Markdown image preview behaviour', async ({browser}, workerInfo) => {
|
||||
const page = await login({browser}, workerInfo);
|
||||
|
||||
const editPath = '/user2/repo1/src/branch/master/README.md'
|
||||
const editPath = '/user2/repo1/src/branch/master/README.md';
|
||||
|
||||
const response = await page.goto(editPath);
|
||||
expect(response?.status()).toBe(200);
|
||||
|
@ -27,14 +27,14 @@ test('Markdown image preview behaviour', async ({browser}, workerInfo) => {
|
|||
await page.locator('[data-tooltip-content="Edit file"]').click();
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
const editor = await page.locator('[aria-roledescription="editor"]').first();
|
||||
const editor = page.locator('[aria-roledescription="editor"]').first();
|
||||
await editor.fill('');
|
||||
await editor.fill('![Logo of Forgejo](./assets/logo.svg "Logo of Forgejo")');
|
||||
|
||||
await page.locator('a[data-tab="preview"]').click();
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
const preview = await page.locator('div[data-tab="preview"] p[dir="auto"] a')
|
||||
const preview = page.locator('div[data-tab="preview"] p[dir="auto"] a');
|
||||
await expect(preview).toHaveAttribute('href', 'http://localhost:3003/user2/repo1/media/branch/master/assets/logo.svg');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue