Shun Miyazawa преди 1 година
родител
ревизия
a4b632d2ce
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      apps/app/playwright/20-basic-features/comments.spec.ts

+ 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');