mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Introduce a collection of behavioural unit tests for navigation (#5085)
This reverts commit ecd881c25df219b511d7efd43dac59e748b21cc7. Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
1 parent
68a605ded9
commit
55d8e0e06c
38 files changed
+17978
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`extension special characters in page registrations renders 1`] = `<div />`;
|
||||
|
||||
exports[`extension special characters in page registrations when navigating to route with ID having special characters renders 1`] = `
|
||||
<div>
|
||||
<div>
|
||||
Some page
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
@@ -0,0 +1,83 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`navigate to extension page renders 1`] = `<div />`;
|
||||
|
||||
exports[`navigate to extension page when extension navigates to child route renders 1`] = `
|
||||
<div>
|
||||
<div>
|
||||
Child page
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`navigate to extension page when extension navigates to route with parameters renders 1`] = `
|
||||
<div>
|
||||
<div>
|
||||
<ul>
|
||||
<li>
|
||||
some-string-value-from-navigate
|
||||
</li>
|
||||
<li>
|
||||
126
|
||||
</li>
|
||||
<li>
|
||||
some-array-value-from-navigate
|
||||
</li>
|
||||
</ul>
|
||||
<button
|
||||
data-testid="button-to-change-page-parameters"
|
||||
type="button"
|
||||
>
|
||||
Some button
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`navigate to extension page when extension navigates to route without parameters renders 1`] = `
|
||||
<div>
|
||||
<div>
|
||||
<ul>
|
||||
<li>
|
||||
some-string-value
|
||||
</li>
|
||||
<li>
|
||||
42
|
||||
</li>
|
||||
<li>
|
||||
some-array-value,some-other-array-value
|
||||
</li>
|
||||
</ul>
|
||||
<button
|
||||
data-testid="button-to-change-page-parameters"
|
||||
type="button"
|
||||
>
|
||||
Some button
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`navigate to extension page when extension navigates to route without parameters when changing page parameters renders 1`] = `
|
||||
<div>
|
||||
<div>
|
||||
<ul>
|
||||
<li>
|
||||
some-changed-string-value
|
||||
</li>
|
||||
<li>
|
||||
84
|
||||
</li>
|
||||
<li>
|
||||
some-changed-array-value,some-other-changed-array-value
|
||||
</li>
|
||||
</ul>
|
||||
<button
|
||||
data-testid="button-to-change-page-parameters"
|
||||
type="button"
|
||||
>
|
||||
Some button
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
@@ -0,0 +1,20 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`navigating between routes given route with optional path parameters when navigating to route with path parameters renders 1`] = `
|
||||
<div>
|
||||
<pre>
|
||||
{
|
||||
"someParameter": "some-value",
|
||||
"someOtherParameter": "some-other-value"
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`navigating between routes given route without path parameters when navigating to route renders 1`] = `
|
||||
<div>
|
||||
<div>
|
||||
Some component
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
Reference in new issue
Block a user