Skip to content

Commit f92bd12

Browse files
committed
fix firefox browser permissions
1 parent e330bff commit f92bd12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

e2e/decoder.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ test.describe("Can interact with JWT Decoder JWT editor", () => {
5353
await expect(jwtEditorInput).toHaveValue(inputValue);
5454
});
5555

56-
test("can copy value in JWT editor", async ({ page, context }) => {
56+
test("can copy value in JWT editor", async ({ page, context, browserName }) => {
57+
const permissions = browserName === 'firefox' ? [] : ["clipboard-read", "clipboard-write"]
5758
const inputValue = (TestJwts.RS512 as JwtSignedWithDigitalModel).withPemKey
5859
.jwt;
59-
await context.grantPermissions(["clipboard-read", "clipboard-write"]);
60+
await context.grantPermissions(permissions);
6061

6162
const lang = await getLang(page);
6263
expectToBeNonNull(lang);

0 commit comments

Comments
 (0)