Skip to content

Commit 0978b3d

Browse files
committed
Simplify the logic and increase timeout for e2e tests.
1 parent 8dcac9a commit 0978b3d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

tests/e2e/tests/exclude-current-post.spec.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,11 @@ test.describe( 'Exclude Current Post - Frontend Rendering', () => {
106106
editor,
107107
admin,
108108
} ) => {
109-
// Create multiple test posts first
110-
const postTitles = [
111-
'Test Post Alpha',
112-
'Test Post Beta',
113-
'Test Post Gamma',
114-
];
109+
test.setTimeout( 60000 );
115110

116-
for ( const title of postTitles ) {
117-
await admin.createNewPost( { title } );
118-
await editor.publishPost();
119-
}
111+
// Create one test post - enough to verify exclusion without slowing CI.
112+
await admin.createNewPost( { title: 'Test Post Alpha' } );
113+
await editor.publishPost();
120114

121115
// Create the main post with AQL block
122116
await admin.createNewPost( { title: 'Main Post with AQL' } );

0 commit comments

Comments
 (0)