diff --git a/.drone.yml b/.drone.yml index 1b6c4aaac57bd..74bba3b610a28 100644 --- a/.drone.yml +++ b/.drone.yml @@ -507,9 +507,8 @@ platform: os: linux arch: amd64 -#depends_on: -# - testing-amd64 -# - testing-arm64 +depends_on: + - compliance trigger: event: @@ -561,7 +560,7 @@ steps: TAGS: bindata USE_REPO_TEST_DIR: 1 NO_DEPS_PLAYWRIGHT: 1 - TEST_LOGGER: console,file # Debug + TEST_LOGGER: file TEST_PGSQL_DBNAME: 'testgitea-e2e' NPX_FLAGS: '--yes' depends_on: [deps-backend, deps-frontend] diff --git a/tools/e2e/tests/example.test.e2e.js b/tools/e2e/tests/example.test.e2e.js index 4638f11022e41..e6b57a4540722 100644 --- a/tools/e2e/tests/example.test.e2e.js +++ b/tools/e2e/tests/example.test.e2e.js @@ -18,7 +18,5 @@ 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}/`); - // Uncomment to see visual testing - //await expect(page).toHaveScreenshot({ timeout: 20000, mask: [page.locator('footer div.ui.left')] }); - //await page.screenshot({ path: `tools/e2e/screenshots/${workerInfo.title}-${workerInfo.project.name}.png` }); + await expect(page).toHaveScreenshot({ timeout: 20000, mask: [page.locator('footer div.ui.left')] }); }); \ No newline at end of file diff --git a/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-Mobile-Chrome-linux.png b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-Mobile-Chrome-linux.png new file mode 100644 index 0000000000000..248f6b7e36245 Binary files /dev/null and b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-Mobile-Chrome-linux.png differ diff --git a/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-Mobile-Safari-linux.png b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-Mobile-Safari-linux.png new file mode 100644 index 0000000000000..714668e7fa0b6 Binary files /dev/null and b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-Mobile-Safari-linux.png differ diff --git a/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-chromium-linux.png b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-chromium-linux.png new file mode 100644 index 0000000000000..40cefdf90b07e Binary files /dev/null and b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-chromium-linux.png differ diff --git a/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-firefox-linux.png b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-firefox-linux.png new file mode 100644 index 0000000000000..a40d91f256758 Binary files /dev/null and b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-firefox-linux.png differ diff --git a/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-webkit-linux.png b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-webkit-linux.png new file mode 100644 index 0000000000000..8c03b6870b633 Binary files /dev/null and b/tools/e2e/tests/example.test.e2e.js-snapshots/Test-Register-Form-1-webkit-linux.png differ