tests
This commit is contained in:
parent
8db9f4c93f
commit
ca629e8c26
|
@ -20,13 +20,13 @@ export const ProfilePopup = (props: ProfilePopupProps) => {
|
|||
<Popup {...props} horizontalAnchor="right" popupCssClass={styles.profilePopup}>
|
||||
<ul class="nodash">
|
||||
<li>
|
||||
<A class={styles.action} href={`/@${author()?.slug || 'anonymous'}`}>
|
||||
<A class={styles.action} href='/profile'>
|
||||
<Icon name="profile" class={styles.icon} />
|
||||
{t('Profile')}
|
||||
</A>
|
||||
</li>
|
||||
<li>
|
||||
<A class={styles.action} href={'/edit'}>
|
||||
<A class={styles.action} href='/edit'>
|
||||
<Icon name="pencil-outline" class={styles.icon} />
|
||||
{t('Drafts')}
|
||||
</A>
|
||||
|
|
|
@ -79,9 +79,9 @@ test.describe('*****Undone***** Drafts - article', () => {
|
|||
})
|
||||
|
||||
test('Create article', async ({ page }) => {
|
||||
await page.goto('/edit/new');
|
||||
await page.locator('li').filter({ hasText: 'статья' }).locator('img').click();
|
||||
});
|
||||
await page.goto('/edit/new')
|
||||
await page.locator('li').filter({ hasText: 'статья' }).locator('img').click()
|
||||
})
|
||||
|
||||
/*
|
||||
|
||||
|
@ -107,14 +107,14 @@ test('Drafts - create literature', async ({ page }) => {
|
|||
}); */
|
||||
|
||||
test('Drafts - create music', async ({ page }) => {
|
||||
await page.getByRole('button', { name: 'Т.Р.' }).click();
|
||||
await page.getByRole('link', { name: 'Черновики' }).click();
|
||||
await page.getByRole('link', { name: 'Создать публикацию' }).click();
|
||||
await page.locator('li').filter({ hasText: 'музыка' }).locator('img').click();
|
||||
await page.getByRole('button', { name: 'Т.Р.' }).click()
|
||||
await page.getByRole('link', { name: 'Черновики' }).click()
|
||||
await page.getByRole('link', { name: 'Создать публикацию' }).click()
|
||||
await page.locator('li').filter({ hasText: 'музыка' }).locator('img').click()
|
||||
// TODO: Fill the form
|
||||
// TODO: Save
|
||||
// TODO: Check is it created
|
||||
});
|
||||
})
|
||||
|
||||
/* test('Drafts - create video', async ({ page }) => {
|
||||
await page.getByRole('button', { name: 'Т.Р' }).click();
|
||||
|
|
|
@ -6,7 +6,6 @@ import { type Page, expect, test } from '@playwright/test'
|
|||
let context: any
|
||||
let page: Page
|
||||
|
||||
|
||||
/* Global starting test config */
|
||||
|
||||
function httpsGet(url: string): Promise<void> {
|
||||
|
@ -80,7 +79,7 @@ test('Sign up', async ({ page }) => {
|
|||
await page.goto('/')
|
||||
/* test.setTimeout(80000); */
|
||||
await page.getByRole('link', { name: 'Войти' }).click()
|
||||
await page.getByRole('link', { name: 'У меня еще нет аккаунта'}).click()
|
||||
await page.getByRole('link', { name: 'У меня еще нет аккаунта' }).click()
|
||||
await page.getByPlaceholder('Имя и фамилия').click()
|
||||
await page.getByPlaceholder('Имя и фамилия').fill('Тестируем Разработку')
|
||||
await page.getByPlaceholder('Почта').click()
|
||||
|
@ -90,7 +89,6 @@ test('Sign up', async ({ page }) => {
|
|||
await page.getByRole('button', { name: 'Присоединиться' }).click()
|
||||
})
|
||||
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto('/')
|
||||
/* test.setTimeout(80000); */
|
||||
|
|
Loading…
Reference in New Issue
Block a user