Shun Miyazawa 1 rok temu
rodzic
commit
a4b632d2ce

+ 2 - 3
apps/app/playwright/20-basic-features/comments.spec.ts

@@ -3,11 +3,10 @@ import { test, expect } from '@playwright/test';
 test('Create comment page', async({ page }) => {
   await page.goto('/comment');
   await page.getByTestId('editor-button').click();
-
-  expect(page.url()).not.toBe('http://localhost:3000/comment#edit');
+  await page.getByTestId('save-page-btn').click();
+  await expect(page.locator('.page-meta')).toBeVisible();
 });
 
-
 test('Successfully add comments', async({ page }) => {
   const commentText = 'add comment';
   await page.goto('/comment');