diff options
author | silverwind <me@silverwind.io> | 2022-09-12 11:08:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 17:08:46 +0800 |
commit | afdab9d8d495590f215f9a2a54d925ed72ad75d0 (patch) | |
tree | dcb46abb69f22c1a85ba4d415c544f084e00f1ba /tests | |
parent | fe73246cf93628cfc7abf096fb540b2f532b4507 (diff) | |
download | gitea-afdab9d8d495590f215f9a2a54d925ed72ad75d0.tar.gz gitea-afdab9d8d495590f215f9a2a54d925ed72ad75d0.zip |
Remove fomantic image module (#21145)
Remove this small, but unnecessary
[module](https://fomantic-ui.com/elements/image.html) and use `img`
selector over previous `.image`. Did a few tests, could not notice any
visual regression.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/e2e/example.test.e2e.js | 2 | ||||
-rw-r--r-- | tests/e2e/utils_e2e.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/e2e/example.test.e2e.js b/tests/e2e/example.test.e2e.js index bd19ceb8fc..b0aa2b7a65 100644 --- a/tests/e2e/example.test.e2e.js +++ b/tests/e2e/example.test.e2e.js @@ -23,7 +23,7 @@ test('Test Register Form', async ({page}, workerInfo) => { await page.click('form button.ui.green.button:visible'); // Make sure we routed to the home page. Else login failed. await expect(page.url()).toBe(`${workerInfo.project.use.baseURL}/`); - await expect(page.locator('.dashboard-navbar span>img.ui.avatar.image')).toBeVisible(); + await expect(page.locator('.dashboard-navbar span>img.ui.avatar')).toBeVisible(); await expect(page.locator('.ui.positive.message.flash-success')).toHaveText('Account was successfully created.'); save_visual(page); diff --git a/tests/e2e/utils_e2e.js b/tests/e2e/utils_e2e.js index b5b9ce2751..50806f851f 100644 --- a/tests/e2e/utils_e2e.js +++ b/tests/e2e/utils_e2e.js @@ -52,8 +52,8 @@ export async function save_visual(page) { fullPage: true, timeout: 20000, mask: [ - page.locator('.dashboard-navbar span>img.ui.avatar.image'), - page.locator('.ui.dropdown.jump.item.tooltip span>img.ui.avatar.image'), + page.locator('.dashboard-navbar span>img.ui.avatar'), + page.locator('.ui.dropdown.jump.item.tooltip span>img.ui.avatar'), ], }); } |