mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
commit
aa288ff797
1 changed files with 3 additions and 1 deletions
|
|
@ -10,9 +10,11 @@ test('Test matchesWithNodeName()', async ({ page }) => {
|
|||
const elem1 = { nodeName: 'INPUT' };
|
||||
const elem2 = { nodeName: 'input' };
|
||||
expect(matchesWithNodeName(elem1, 'INPUT')).toBe(true);
|
||||
expect(matchesWithNodeName(elem1, 'INPUT')).toBe(true);
|
||||
expect(matchesWithNodeName(elem1, 'input')).toBe(true);
|
||||
expect(matchesWithNodeName(elem2, 'INPUT')).toBe(true);
|
||||
expect(matchesWithNodeName(elem2, 'input')).toBe(true);
|
||||
expect(matchesWithNodeName(elem1, 'TEXT')).toBe(false);
|
||||
expect(matchesWithNodeName(elem1, 'text')).toBe(false);
|
||||
expect(matchesWithNodeName(undefined, 'INPUT')).toBe(false);
|
||||
expect(matchesWithNodeName(undefined, undefined)).toBe(false);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue