Skip to content

Commit

Permalink
chore: change in-progress to my-drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zangetsu101 committed Dec 30, 2024
1 parent 99f94ec commit 22622a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions e2e/testcases/birth/1-birth-event-declaration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ test.describe('1. Birth event declaration', () => {

/*
* Expected result: should
* - be navigated to "in-progress" tab
* - be navigated to "my-drafts" tab
* - find the declared birth event record on this page list with saved data
*/
await expect(page.locator('#content-name')).toHaveText('In progress')
await expect(page.locator('#content-name')).toHaveText('My drafts')
await expect(page.getByText(/seconds ago/)).toBeVisible()
})
})
Expand Down Expand Up @@ -483,13 +483,13 @@ test.describe('1. Birth event declaration', () => {
test('1.10.3 Click Confirm', async ({ page }) => {
await page.getByRole('button', { name: 'Confirm' }).click()
/*
* Expected result: should be navigated to "in-progress" tab but no draft will be saved
* Expected result: should be navigated to "my-drafts" tab but no draft will be saved
*/

await page.waitForTimeout(500) // This page renders twice at first

await expect(
page.locator('#content-name', { hasText: 'In progress' })
page.locator('#content-name', { hasText: 'My drafts' })
).toBeVisible()
await expect(page.getByText(/seconds ago/)).toBeHidden()
})
Expand Down Expand Up @@ -552,13 +552,13 @@ test.describe('1. Birth event declaration', () => {
await page.getByRole('button', { name: 'Confirm' }).click()

/*
* Expected result: should be navigated to "in-progress" tab but no draft will be saved
* Expected result: should be navigated to "my-drafts" tab but no draft will be saved
*/

await page.waitForTimeout(500) // This page renders twice at first

await expect(
page.locator('#content-name', { hasText: 'In progress' })
page.locator('#content-name', { hasText: 'My drafts' })
).toBeVisible()
await expect(page.getByText(/seconds ago/)).toBeHidden()
})
Expand Down
12 changes: 6 additions & 6 deletions e2e/testcases/death/1-death-event-declaration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,10 @@ test.describe('1. Death event declaration', () => {

/*
* Expected result: should
* - be navigated to "in-progress" tab
* - be navigated to "my-drafts" tab
* - find the declared death event record on this page list with saved data
*/
await expect(page.locator('#content-name')).toHaveText('In progress')
await expect(page.locator('#content-name')).toHaveText('My drafts')
await expect(page.getByText(/seconds ago/)).toBeVisible()
})
})
Expand Down Expand Up @@ -463,13 +463,13 @@ test.describe('1. Death event declaration', () => {
test('1.10.3 Click Confirm', async ({ page }) => {
await page.getByRole('button', { name: 'Confirm' }).click()
/*
* Expected result: should be navigated to "in-progress" tab but no draft will be saved
* Expected result: should be navigated to "my-drafts" tab but no draft will be saved
*/

await page.waitForTimeout(500) // This page renders twice at first

await expect(
page.locator('#content-name', { hasText: 'In progress' })
page.locator('#content-name', { hasText: 'My drafts' })
).toBeVisible()
await expect(page.getByText(/seconds ago/)).toBeHidden()
})
Expand Down Expand Up @@ -532,13 +532,13 @@ test.describe('1. Death event declaration', () => {
await page.getByRole('button', { name: 'Confirm' }).click()

/*
* Expected result: should be navigated to "in-progress" tab but no draft will be saved
* Expected result: should be navigated to "my-drafts" tab but no draft will be saved
*/

await page.waitForTimeout(500) // This page renders twice at first

await expect(
page.locator('#content-name', { hasText: 'In progress' })
page.locator('#content-name', { hasText: 'My drafts' })
).toBeVisible()
await expect(page.getByText(/seconds ago/)).toBeHidden()
})
Expand Down

0 comments on commit 22622a1

Please sign in to comment.