Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
wax
Merge requests
!282
Add signature providers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add signature providers
tm-sign-ext
into
develop
Overview
0
Commits
40
Pipelines
46
Changes
9
Merged
Mateusz Tyszczak
requested to merge
tm-sign-ext
into
develop
1 month ago
Overview
0
Commits
40
Pipelines
46
Changes
9
Expand
Requires:
common-ci-configuration!75 (merged)
Edited
3 weeks ago
by
Bartek Wrona
0
0
Merge request reports
Viewing commit
d5da1ff3
Prev
Next
Show latest version
9 files
+
169
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
d5da1ff3
Extend signature extension example by signing transction with key chain extension playwright test
· d5da1ff3
Fabian Waszkiewicz
authored
3 weeks ago
examples/ts/signature-extension/__tests__/assets/fixture.ts
0 → 100644
+
35
−
0
Options
import
{
chromium
,
test
as
base
,
type
BrowserContext
}
from
"
@playwright/test
"
;
import
path
,
{
dirname
}
from
"
path
"
;
import
{
fileURLToPath
}
from
"
url
"
;
export
const
test
=
base
.
extend
<
{
context
:
BrowserContext
,
extensionId
:
string
}
>
({
context
:
async
({},
use
)
=>
{
const
__dirname
=
dirname
(
fileURLToPath
(
import
.
meta
.
url
));
const
pathToExtension
=
path
.
join
(
__dirname
,
"
../extensions/Hive-Keychain
"
);
const
browserContext
=
await
chromium
.
launchPersistentContext
(
''
,
{
headless
:
false
,
args
:
[
`--disable-extensions-except=
${
pathToExtension
}
`
,
`--load-extension=
${
pathToExtension
}
`
,
'
--headless=chromium
'
],
ignoreDefaultArgs
:
[
'
--disable-component-extensions-with-background-pages
'
],
});
await
use
(
browserContext
);
await
browserContext
.
close
();
},
extensionId
:
async
({
context
},
use
)
=>
{
let
[
background
]
=
context
.
serviceWorkers
();
if
(
!
background
)
background
=
await
context
.
waitForEvent
(
'
serviceworker
'
);
const
extensionId
=
background
.
url
().
split
(
'
/
'
)[
2
];
await
use
(
extensionId
);
},
});
Loading