Add project status test (#2056)

This commit is contained in:
Alex 2022-06-10 22:52:40 +07:00 committed by GitHub
parent dd804a079c
commit f473bdbb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ test.use({
storageState: PlatformSetting
})
test.describe('contact tests', () => {
test.describe('project tests', () => {
test.beforeEach(async ({ page }) => {
// Create user and workspace
await page.goto(`${PlatformURI}/workbench%3Acomponent%3AWorkbenchApp`)
@ -34,4 +34,21 @@ test.describe('contact tests', () => {
await page.click(`button:has-text("${prjId}")`)
await page.click('button:has-text("No project")')
})
test('create-project-with-status', async ({ page }) => {
await page.click('[id="app-tracker\\:string\\:TrackerApplication"]')
await page.click('text=Projects')
await expect(page).toHaveURL(
`${PlatformURI}/workbench%3Acomponent%3AWorkbenchApp/tracker%3Aapp%3ATracker/tracker%3Ateam%3ADefaultTeam/projects`
)
await page.click('button:has-text("Project")')
const prjId = 'project-' + generateId()
await page.fill('[placeholder="Project\\ name"]', prjId)
await page.click('text=Backlog Lead Members Start date Target date >> button')
await page.click('button:has-text("In progress")')
await page.click('button:has-text("Create project")')
await page.click(`text=${prjId}`)
await page.click('button:has-text("In progress")')
await page.click('button:has-text("Completed")')
})
})