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
3def36ef
Commit
3def36ef
authored
Jun 06, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
16603eba
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
65 additions
and
4 deletions
+65
-4
AddressTokens.pw.tsx
ui/address/AddressTokens.pw.tsx
+65
-4
AddressTokens.pw.tsx_dark-color-mode_erc1155-dark-mode-1.png
...ressTokens.pw.tsx_dark-color-mode_erc1155-dark-mode-1.png
+0
-0
AddressTokens.pw.tsx_dark-color-mode_erc20-dark-mode-1.png
...ddressTokens.pw.tsx_dark-color-mode_erc20-dark-mode-1.png
+0
-0
AddressTokens.pw.tsx_dark-color-mode_erc721-dark-mode-1.png
...dressTokens.pw.tsx_dark-color-mode_erc721-dark-mode-1.png
+0
-0
AddressTokens.pw.tsx_default_erc1155-dark-mode-1.png
...ts__/AddressTokens.pw.tsx_default_erc1155-dark-mode-1.png
+0
-0
AddressTokens.pw.tsx_default_erc20-dark-mode-1.png
...hots__/AddressTokens.pw.tsx_default_erc20-dark-mode-1.png
+0
-0
AddressTokens.pw.tsx_default_erc721-dark-mode-1.png
...ots__/AddressTokens.pw.tsx_default_erc721-dark-mode-1.png
+0
-0
AddressTokens.pw.tsx_default_mobile-erc1155-1.png
...shots__/AddressTokens.pw.tsx_default_mobile-erc1155-1.png
+0
-0
AddressTokens.pw.tsx_default_mobile-erc20-1.png
...enshots__/AddressTokens.pw.tsx_default_mobile-erc20-1.png
+0
-0
AddressTokens.pw.tsx_default_mobile-erc721-1.png
...nshots__/AddressTokens.pw.tsx_default_mobile-erc721-1.png
+0
-0
No files found.
ui/address/AddressTokens.pw.tsx
View file @
3def36ef
import
{
Box
}
from
'
@chakra-ui/react
'
;
import
{
Box
}
from
'
@chakra-ui/react
'
;
import
{
test
as
base
,
expect
}
from
'
@playwright/experimental-ct-react
'
;
import
{
test
as
base
,
expect
,
devices
}
from
'
@playwright/experimental-ct-react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
withName
}
from
'
mocks/address/address
'
;
import
{
withName
}
from
'
mocks/address/address
'
;
...
@@ -56,7 +56,7 @@ const test = base.extend({
...
@@ -56,7 +56,7 @@ const test = base.extend({
},
},
});
});
test
(
'
erc20 +@
mobile +@
dark-mode
'
,
async
({
mount
})
=>
{
test
(
'
erc20 +@dark-mode
'
,
async
({
mount
})
=>
{
const
hooksConfig
=
{
const
hooksConfig
=
{
router
:
{
router
:
{
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc20
'
},
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc20
'
},
...
@@ -75,7 +75,7 @@ test('erc20 +@mobile +@dark-mode', async({ mount }) => {
...
@@ -75,7 +75,7 @@ test('erc20 +@mobile +@dark-mode', async({ mount }) => {
await
expect
(
component
).
toHaveScreenshot
();
await
expect
(
component
).
toHaveScreenshot
();
});
});
test
(
'
erc721 +@
mobile +@
dark-mode
'
,
async
({
mount
})
=>
{
test
(
'
erc721 +@dark-mode
'
,
async
({
mount
})
=>
{
const
hooksConfig
=
{
const
hooksConfig
=
{
router
:
{
router
:
{
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc721
'
},
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc721
'
},
...
@@ -94,7 +94,7 @@ test('erc721 +@mobile +@dark-mode', async({ mount }) => {
...
@@ -94,7 +94,7 @@ test('erc721 +@mobile +@dark-mode', async({ mount }) => {
await
expect
(
component
).
toHaveScreenshot
();
await
expect
(
component
).
toHaveScreenshot
();
});
});
test
(
'
erc1155 +@
mobile +@
dark-mode
'
,
async
({
mount
})
=>
{
test
(
'
erc1155 +@dark-mode
'
,
async
({
mount
})
=>
{
const
hooksConfig
=
{
const
hooksConfig
=
{
router
:
{
router
:
{
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc1155
'
},
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc1155
'
},
...
@@ -112,3 +112,64 @@ test('erc1155 +@mobile +@dark-mode', async({ mount }) => {
...
@@ -112,3 +112,64 @@ test('erc1155 +@mobile +@dark-mode', async({ mount }) => {
await
expect
(
component
).
toHaveScreenshot
();
await
expect
(
component
).
toHaveScreenshot
();
});
});
test
.
describe
(
'
mobile
'
,
()
=>
{
test
.
use
({
viewport
:
devices
[
'
iPhone 13 Pro
'
].
viewport
});
test
(
'
erc20
'
,
async
({
mount
})
=>
{
const
hooksConfig
=
{
router
:
{
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc20
'
},
isReady
:
true
,
},
};
const
component
=
await
mount
(
<
TestApp
>
<
Box
h=
{
{
base
:
'
134px
'
,
lg
:
6
}
}
/>
<
AddressTokens
/>
</
TestApp
>,
{
hooksConfig
},
);
await
expect
(
component
).
toHaveScreenshot
();
});
test
(
'
erc721
'
,
async
({
mount
})
=>
{
const
hooksConfig
=
{
router
:
{
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc721
'
},
isReady
:
true
,
},
};
const
component
=
await
mount
(
<
TestApp
>
<
Box
h=
{
{
base
:
'
134px
'
,
lg
:
6
}
}
/>
<
AddressTokens
/>
</
TestApp
>,
{
hooksConfig
},
);
await
expect
(
component
).
toHaveScreenshot
();
});
test
(
'
erc1155
'
,
async
({
mount
})
=>
{
const
hooksConfig
=
{
router
:
{
query
:
{
hash
:
ADDRESS_HASH
,
tab
:
'
tokens_erc1155
'
},
isReady
:
true
,
},
};
const
component
=
await
mount
(
<
TestApp
>
<
Box
h=
{
{
base
:
'
134px
'
,
lg
:
6
}
}
/>
<
AddressTokens
/>
</
TestApp
>,
{
hooksConfig
},
);
await
expect
(
component
).
toHaveScreenshot
();
});
});
ui/address/__screenshots__/AddressTokens.pw.tsx_dark-color-mode_erc1155-dark-mode-1.png
0 → 100644
View file @
3def36ef
28.5 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_dark-color-mode_erc20-dark-mode-1.png
0 → 100644
View file @
3def36ef
44.2 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_dark-color-mode_erc721-dark-mode-1.png
0 → 100644
View file @
3def36ef
43.4 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_default_erc1155-dark-mode-1.png
0 → 100644
View file @
3def36ef
27.7 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_default_erc20-dark-mode-1.png
0 → 100644
View file @
3def36ef
43.5 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_default_erc721-dark-mode-1.png
0 → 100644
View file @
3def36ef
42.5 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_default_mobile-erc1155-1.png
0 → 100644
View file @
3def36ef
27.8 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_default_mobile-erc20-1.png
0 → 100644
View file @
3def36ef
54.3 KB
ui/address/__screenshots__/AddressTokens.pw.tsx_default_mobile-erc721-1.png
0 → 100644
View file @
3def36ef
38.7 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