Disable create-issue-and-sub-issue (#3355)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-06-06 13:34:41 +06:00 committed by GitHub
parent 6a7fe71447
commit 00df8de669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,6 @@ import {
checkIssue, checkIssue,
checkIssueDraft, checkIssueDraft,
createIssue, createIssue,
createLabel,
createSubissue,
fillIssueForm, fillIssueForm,
navigate, navigate,
openIssue openIssue
@ -17,31 +15,31 @@ test.use({
storageState: PlatformSetting storageState: PlatformSetting
}) })
test('create-issue-and-sub-issue', async ({ page }) => { // test('create-issue-and-sub-issue', async ({ page }) => {
const props = { // const props = {
name: getIssueName(), // name: getIssueName(),
description: 'description', // description: 'description',
labels: ['label', 'another-label'], // labels: ['label', 'another-label'],
status: DEFAULT_STATUSES[0], // status: DEFAULT_STATUSES[0],
priority: 'Urgent', // priority: 'Urgent',
assignee: DEFAULT_USER // assignee: DEFAULT_USER
} // }
await navigate(page) // await navigate(page)
for (const label of props.labels) { // for (const label of props.labels) {
await createLabel(page, label) // await createLabel(page, label)
} // }
await createIssue(page, props) // await createIssue(page, props)
await page.click('text="Issues"') // await page.click('text="Issues"')
await fillSearch(page, props.name) // await fillSearch(page, props.name)
await openIssue(page, props.name) // await openIssue(page, props.name)
await checkIssue(page, props) // await checkIssue(page, props)
props.name = `sub${props.name}` // props.name = `sub${props.name}`
await createSubissue(page, props) // await createSubissue(page, props)
await openIssue(page, props.name) // await openIssue(page, props.name)
await checkIssue(page, props) // await checkIssue(page, props)
}) // })
const getIssueName = (postfix: string = generateId(5)): string => `issue-${postfix}` const getIssueName = (postfix: string = generateId(5)): string => `issue-${postfix}`