Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
9c52bdcd
Commit
9c52bdcd
authored
Jun 13, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
screenshot test
parent
bd4c82b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Pagination.pw.tsx
ui/shared/pagination/Pagination.pw.tsx
+31
-0
Pagination.pw.tsx_default_default-view-1.png
...creenshots__/Pagination.pw.tsx_default_default-view-1.png
+0
-0
No files found.
ui/shared/pagination/Pagination.pw.tsx
0 → 100644
View file @
9c52bdcd
import
{
test
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
type
{
PaginationParams
}
from
'
./types
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
Pagination
from
'
./Pagination
'
;
test
.
use
({
viewport
:
{
width
:
250
,
height
:
50
}
});
test
(
'
default view
'
,
async
({
mount
})
=>
{
const
props
:
PaginationParams
=
{
page
:
2
,
isVisible
:
true
,
isLoading
:
false
,
hasNextPage
:
true
,
hasPages
:
true
,
canGoBackwards
:
false
,
onNextPageClick
:
()
=>
{},
onPrevPageClick
:
()
=>
{},
resetPage
:
()
=>
{},
};
const
component
=
await
mount
(
<
TestApp
>
<
Pagination
{
...
props
}
w=
"fit-content"
/>
</
TestApp
>,
);
await
expect
(
component
).
toHaveScreenshot
();
});
ui/shared/pagination/__screenshots__/Pagination.pw.tsx_default_default-view-1.png
0 → 100644
View file @
9c52bdcd
2.37 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment