Skip to content

Commit

Permalink
fixes lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vrknetha committed Dec 8, 2024
1 parent 8fa0199 commit b346a10
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/clipboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ test.describe('PlaywrightClipboard', () => {

// Navigate to the test page
await page.goto('http://localhost:8080');

// For Firefox and WebKit, we need to ensure the page has focus
if (browserName !== 'chromium') {
await page.evaluate(() => {
window.focus();
document.body.focus();
});

// Add a small delay to ensure focus is properly set
await page.waitForTimeout(100);
}
Expand All @@ -36,14 +36,6 @@ test.describe('PlaywrightClipboard', () => {
test.setTimeout(30000);

// Helper function to get the correct modifier key based on OS and browser
const getModifierKey = (browserName: string): string => {
// On macOS, use Meta (Command) key
if (process.platform === 'darwin') {
return 'Meta';
}
// On Windows/Linux, use Control key
return 'Control';
};

test.beforeEach(async ({ page, browserName }) => {
// For Firefox and WebKit, ensure clipboard is ready
Expand Down

0 comments on commit b346a10

Please sign in to comment.