Skip to content

Commit

Permalink
Merge pull request #2329 from Flamefire/patch-1
Browse files Browse the repository at this point in the history
Fix C&P issue in test
  • Loading branch information
varjolintu authored Sep 3, 2024
2 parents ffc1e90 + 7a60b76 commit aa288ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/global.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit aa288ff

Please sign in to comment.