mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
Add project status test (#2056)
This commit is contained in:
parent
dd804a079c
commit
f473bdbb57
@ -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")')
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user