From 6c84d5f7f11431f3ee14ddce4084d5f373672ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Thernstr=C3=B6m?= Date: Wed, 24 Jan 2024 20:38:43 +0100 Subject: [PATCH] Tests: Comment out the post categories added/removed test because aint working yet --- tests/acceptance/SimplePostLoggerCest.php | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/acceptance/SimplePostLoggerCest.php b/tests/acceptance/SimplePostLoggerCest.php index 1baed651..3a7534d6 100644 --- a/tests/acceptance/SimplePostLoggerCest.php +++ b/tests/acceptance/SimplePostLoggerCest.php @@ -68,23 +68,23 @@ public function testPostCreated(Admin $I) { * @param Admin $I */ public function testPostCategoriesAddedAndRemoved(Admin $I) { - $I->amOnAdminPage('edit.php?post_type=post'); - $I->click('Add New', '.wrap'); + // $I->amOnAdminPage('edit.php?post_type=post'); + // $I->click('Add New', '.wrap'); - // Close Welcome guide. - $I->click('.edit-post-welcome-guide button.components-button'); + // // Close Welcome guide. + // $I->click('.edit-post-welcome-guide button.components-button'); - // Edit post and save as draft. - $I->click('.wp-block-post-title'); - $I->pressKey('.wp-block-post-title', ['H', 'e', 'l', 'l', 'o']); - $I->click('Save draft'); - $I->waitForText('Draft saved'); - $I->seeLogMessage('Created post "Hello"'); - $I->seeLogContext([ - 'post_type' => 'post', - 'post_title' => 'Hello', - '_message_key' => 'post_created', - ]); + // // Edit post and save as draft. + // $I->click('.wp-block-post-title'); + // $I->pressKey('.wp-block-post-title', ['H', 'e', 'l', 'l', 'o']); + // $I->click('Save draft'); + // $I->waitForText('Draft saved'); + // $I->seeLogMessage('Created post "Hello"'); + // $I->seeLogContext([ + // 'post_type' => 'post', + // 'post_title' => 'Hello', + // '_message_key' => 'post_created', + // ]); /** * Add tags and categories. @@ -95,12 +95,12 @@ public function testPostCategoriesAddedAndRemoved(Admin $I) { // Expand categories panel. // $I->click('Categories', 'button span'); - $I->click('.components-button components-panel__body-toggle:nth-child(1)'); + // $I->click('.components-button components-panel__body-toggle:nth-child(1)'); // $I->findElement('.editor-post-taxonomies__hierarchical-terms-add')->click(); // Scroll down to "Add New Category" button. // $I->scrollTo('.editor-post-taxonomies__hierarchical-terms-add'); - $I->makeScreenshot('post-created'); + // $I->makeScreenshot('post-created'); } }