mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
tests(e2e): remove unnecessary example test
The login behaviour is basically covered in login_user from utils_e2e.js, too.
This commit is contained in:
parent
a87b351476
commit
e4234fe6ab
1 changed files with 0 additions and 15 deletions
|
@ -29,21 +29,6 @@ test('Register Form', async ({page}, workerInfo) => {
|
|||
save_visual(page);
|
||||
});
|
||||
|
||||
test('Login Form', async ({page}, workerInfo) => {
|
||||
const response = await page.goto('/user/login');
|
||||
await expect(response?.status()).toBe(200); // Status OK
|
||||
|
||||
await page.type('input[name=user_name]', `user2`);
|
||||
await page.type('input[name=password]', `password`);
|
||||
await page.click('form button.ui.primary.button:visible');
|
||||
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await expect(page.url()).toBe(`${workerInfo.project.use.baseURL}/`);
|
||||
|
||||
save_visual(page);
|
||||
});
|
||||
|
||||
test('Logged In User', async ({browser}, workerInfo) => {
|
||||
const context = await load_logged_in_context(browser, workerInfo, 'user2');
|
||||
const page = await context.newPage();
|
||||
|
|
Loading…
Reference in a new issue