-
-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deep merge props functionality and tests
This commit introduces the deepMergeProps feature in the Vue3 application, allowing for more comprehensive property merging. A corresponding test has been created to ensure the functionality operates as expected. Additionally, server routing is updated to support deepMergeProps.
- Loading branch information
1 parent
eb2af64
commit 73a5524
Showing
3 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { expect, test } from '@playwright/test' | ||
import { clickAndWaitForResponse } from './support' | ||
|
||
test('can deep merge props', async ({ page }) => { | ||
await page.goto('/deep-merge-props') | ||
|
||
await expect(page.getByText('bar count is 5')).toBeVisible() | ||
await expect(page.getByText('foo count is 5')).toBeVisible() | ||
|
||
await clickAndWaitForResponse(page, 'Reload', null, 'button') | ||
|
||
await expect(page.getByText('bar count is 5')).toBeVisible() | ||
await expect(page.getByText('foo count is 10')).toBeVisible() | ||
|
||
await clickAndWaitForResponse(page, 'Reload', null, 'button') | ||
|
||
await expect(page.getByText('bar count is 5')).toBeVisible() | ||
await expect(page.getByText('foo count is 15')).toBeVisible() | ||
|
||
await clickAndWaitForResponse(page, 'Get Fresh', null, 'button') | ||
|
||
await expect(page.getByText('bar count is 5')).toBeVisible() | ||
await expect(page.getByText('foo count is 5')).toBeVisible() | ||
|
||
await clickAndWaitForResponse(page, 'Reload', null, 'button') | ||
|
||
await expect(page.getByText('bar count is 5')).toBeVisible() | ||
await expect(page.getByText('foo count is 10')).toBeVisible() | ||
}) |