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 }) => {
 test('Create comment page', async({ page }) => {
   await page.goto('/comment');
   await page.goto('/comment');
   await page.getByTestId('editor-button').click();
   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 }) => {
 test('Successfully add comments', async({ page }) => {
   const commentText = 'add comment';
   const commentText = 'add comment';
   await page.goto('/comment');
   await page.goto('/comment');