mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-12 22:10:25 +00:00
chore: adjust failing E2E tests (#10028)
Adjust the E2E tests to fail less often. See individual commits. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10028 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
7ad3d07910
commit
dd83b834f6
3 changed files with 7 additions and 4 deletions
|
|
@ -66,7 +66,8 @@ test('Rename normal branch', async ({page}) => {
|
|||
expect(response?.status()).toBe(200);
|
||||
});
|
||||
|
||||
test('Rename default branch', async ({page}) => {
|
||||
test('Rename default branch', async ({page}, workerInfo) => {
|
||||
test.skip(['Mobile Safari', 'webkit'].includes(workerInfo.project.name));
|
||||
let response = await page.goto('/user2/repo1/branches');
|
||||
expect(response?.status()).toBe(200);
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ import {screenshot} from './shared/screenshots.ts';
|
|||
|
||||
test.use({user: 'user2'});
|
||||
|
||||
test('Create branch from commit', async ({page}) => {
|
||||
test('Create branch from commit', async ({page}, workerInfo) => {
|
||||
test.skip(['Mobile Safari', 'webkit'].includes(workerInfo.project.name));
|
||||
let response = await page.goto('/user2/repo1/commit/65f1bf27bc3bf70f64657658635e66094edbcb4d');
|
||||
expect(response?.status()).toBe(200);
|
||||
|
||||
|
|
@ -39,7 +40,8 @@ test('Create branch from commit', async ({page}) => {
|
|||
expect(response?.status()).toBe(200);
|
||||
});
|
||||
|
||||
test('Create tag from commit', async ({page}) => {
|
||||
test('Create tag from commit', async ({page}, workerInfo) => {
|
||||
test.skip(['Mobile Safari', 'webkit'].includes(workerInfo.project.name));
|
||||
let response = await page.goto('/user2/repo1/commit/65f1bf27bc3bf70f64657658635e66094edbcb4d');
|
||||
expect(response?.status()).toBe(200);
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ test('New repo: initialize later', async ({page}) => {
|
|||
await page.getByPlaceholder('master').fill('devbranch');
|
||||
await validate_form({page}, 'fieldset');
|
||||
await page.getByRole('button', {name: 'Create repository'}).click();
|
||||
expect(page.url()).toBe(`http://localhost:3003/user2/${reponame}`);
|
||||
await page.waitForURL(new RegExp(`.*/user2/${reponame}$`));
|
||||
await expect(page.getByRole('link', {name: 'New file'})).toBeVisible();
|
||||
await expect(page.getByRole('heading', {name: 'Creating a new repository on'})).toBeVisible();
|
||||
await screenshot(page);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue