Skip to content

Instantly share code, notes, and snippets.

@minhphong306
Last active January 27, 2026 01:21
Show Gist options
  • Select an option

  • Save minhphong306/c89586219c089f0ef4f935bce0963e9e to your computer and use it in GitHub Desktop.

Select an option

Save minhphong306/c89586219c089f0ef4f935bce0963e9e to your computer and use it in GitHub Desktop.
import { test } from '@playwright/test';
test.describe('Demo code', () => {
// test.use({ storageState: 'storage.json' });
test.beforeEach(async ({ page, context }) => {
// Chặn request tới SDK tiktok
await context.route('xxx/events.js**', route => route.abort());
await page.goto("https://xxxx")
});
test('T1', {}, async ({ page }) => {
console.log("hihi");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment