Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PCreations/76ea92183d701f895857b013fa8742e4 to your computer and use it in GitHub Desktop.
Save PCreations/76ea92183d701f895857b013fa8742e4 to your computer and use it in GitHub Desktop.
393eb230988e1f4e9204c6ad52b278b0f225936be746c47dd44dd6a25f6af197.diff
-0,0 +1,8 @@
+import { test, expect } from '@playwright/test';
+
+test('has title', async ({ page }) => {
+ await page.goto('http://localhost:3000');
+
+ // Expect a title "to contain" a substring.
+ await expect(page).toHaveTitle(/Crafty Reads/);
+});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment