-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add skeleton * fix e2e flakiness * gfix e2e flakiness
- Loading branch information
Victor Fernandes
authored
Feb 8, 2024
1 parent
937448a
commit 4fed56a
Showing
9 changed files
with
112 additions
and
19 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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
module.exports = { | ||
launch: { | ||
dumpio: false, | ||
headless: 'new', | ||
headless: 'new', | ||
args: [ | ||
'--disable-extensions-except=./dist', | ||
'--load-extension=./dist', | ||
'--disable-gpu', | ||
'--no-sandbox', | ||
], | ||
}, | ||
}; |
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,62 @@ | ||
function randomNumber(min: number, max: number) { | ||
return Math.floor(Math.random() * (max - min + 1)) + min; | ||
} | ||
|
||
const LoadingSkeleton = () => { | ||
return ( | ||
<div className="skeleton-results"> | ||
<div className="table-preview" style={{ opacity: 0.5 }}> | ||
<div className="table-header"> | ||
<caption | ||
className="title skeleton" | ||
style={{ background: 'var(--light-grey)', width: 150, height: 14 }} | ||
/> | ||
<div className="pill skeleton" style={{ height: 20, width: 60 }}></div> | ||
</div> | ||
<div className="table-body"> | ||
<div className="table-container"> | ||
<table> | ||
{new Array(5).fill(0).map((_, index) => ( | ||
<tr key={index}> | ||
<td> | ||
<div | ||
className="skeleton" | ||
style={{ | ||
background: 'var(--light-grey)', | ||
width: randomNumber(30, 80), | ||
height: 14, | ||
}} | ||
/> | ||
</td> | ||
<td> | ||
<div | ||
className="skeleton" | ||
style={{ | ||
background: 'var(--light-grey)', | ||
width: randomNumber(30, 80), | ||
height: 14, | ||
}} | ||
/> | ||
</td> | ||
<td> | ||
<div | ||
className="skeleton" | ||
style={{ | ||
background: 'var(--light-grey)', | ||
width: randomNumber(30, 80), | ||
height: 14, | ||
}} | ||
/> | ||
</td> | ||
</tr> | ||
))} | ||
</table> | ||
<div className="shade" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoadingSkeleton; |
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
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