mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Update Playwright and fix vulnerabilities
This commit is contained in:
parent
fcd8c8a627
commit
6b3d9918ba
7 changed files with 982 additions and 4544 deletions
|
|
@ -153,7 +153,9 @@ kpxcObserverHelper.getInputs = function(target, ignoreVisibility = false) {
|
|||
// Traverse children
|
||||
const traversedChildren = kpxcObserverHelper.findInputsFromChildren(target);
|
||||
for (const child of traversedChildren) {
|
||||
inputFields.push(child);
|
||||
if (!inputFields.includes(child)) {
|
||||
inputFields.push(child);
|
||||
}
|
||||
}
|
||||
|
||||
// Append any input fields in Shadow DOM
|
||||
|
|
|
|||
5498
package-lock.json
generated
5498
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -4,10 +4,10 @@
|
|||
"description": "KeePassXC-Browser",
|
||||
"main": "build.js",
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.20.0",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-airbnb-base": "^14.2.0",
|
||||
"eslint-plugin-import": "^2.24.2"
|
||||
"@playwright/test": "^1.22.0",
|
||||
"eslint": "^8.18.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-import": "^2.26.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@npmcli/fs": "^2.1.0",
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const config = {
|
|||
},
|
||||
},
|
||||
],
|
||||
testMatch: 'content-script-tests.js',
|
||||
testMatch: 'content-script-tests.mjs',
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const { test, expect } = require('@playwright/test');
|
||||
const fileUrl = require('file-url');
|
||||
import { test, expect } from '@playwright/test';
|
||||
import fileUrl from 'file-url';
|
||||
|
||||
const DEST = 'keepassxc-browser/tests';
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
const fs = require('fs-extra');
|
||||
const fs = require('@npmcli/fs')
|
||||
|
||||
const DEST = 'keepassxc-browser/tests';
|
||||
|
||||
module.exports = async config => {
|
||||
// Create a temporary directory and copy tests/* to keepassxc-browser/tests
|
||||
await fs.ensureDir(DEST);
|
||||
await fs.copy('./tests', DEST);
|
||||
await fs.exists(DEST);
|
||||
await fs.cp('./tests', DEST, { recursive: true });
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
const fs = require('fs-extra');
|
||||
const fs = require('@npmcli/fs')
|
||||
|
||||
const DEST = 'keepassxc-browser/tests';
|
||||
|
||||
module.exports = async config => {
|
||||
// Delete previously created temporary directory. Comment for re-running tests manually inside the extension.
|
||||
await fs.remove(DEST);
|
||||
await fs.rm(DEST, { recursive: true });
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue