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