forked from kevadesu/forgejo
tests(e2e): Allow tests to run only on file changes
- supports glob patterns in testfiles - only runs tests on changes - always runs tests without specified patterns tests(e2e): refactor global watch patterns tests(e2e): add watch patterns to test files
This commit is contained in:
parent
f2a23c962a
commit
7765153b40
21 changed files with 260 additions and 7 deletions
|
@ -1,25 +0,0 @@
|
|||
// @ts-check
|
||||
import {expect} from '@playwright/test';
|
||||
import {test, login_user, load_logged_in_context} from './utils_e2e.js';
|
||||
|
||||
test.beforeAll(async ({browser}, workerInfo) => {
|
||||
await login_user(browser, workerInfo, 'user2');
|
||||
});
|
||||
|
||||
test('Switch branch', async ({browser}, workerInfo) => {
|
||||
const context = await load_logged_in_context(browser, workerInfo, 'user2');
|
||||
const page = await context.newPage();
|
||||
const response = await page.goto('/user2/repo1/graph');
|
||||
await expect(response?.status()).toBe(200);
|
||||
|
||||
await page.click('#flow-select-refs-dropdown');
|
||||
const input = page.locator('#flow-select-refs-dropdown');
|
||||
await input.pressSequentially('develop', {delay: 50});
|
||||
await input.press('Enter');
|
||||
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await expect(page.locator('#loading-indicator')).toBeHidden();
|
||||
await expect(page.locator('#rel-container')).toBeVisible();
|
||||
await expect(page.locator('#rev-container')).toBeVisible();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue