Skip to content

Commit 9cecd85

Browse files
committed
Fix tests
1 parent 9d744cf commit 9cecd85

3 files changed

Lines changed: 20 additions & 220 deletions

File tree

.vscode/settings.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,6 @@
1010
"[markdown]": {
1111
"editor.formatOnSave": false
1212
},
13-
"workbench.colorCustomizations": {
14-
"activityBar.activeBackground": "#314158",
15-
"activityBar.background": "#314158",
16-
"activityBar.foreground": "#e7e7e7",
17-
"activityBar.inactiveForeground": "#e7e7e799",
18-
"activityBarBadge.background": "#000000",
19-
"activityBarBadge.foreground": "#e7e7e7",
20-
"commandCenter.border": "#e7e7e799",
21-
"sash.hoverBorder": "#314158",
22-
"statusBar.background": "#1f2937",
23-
"statusBar.foreground": "#e7e7e7",
24-
"statusBarItem.hoverBackground": "#314158",
25-
"statusBarItem.remoteBackground": "#1f2937",
26-
"statusBarItem.remoteForeground": "#e7e7e7",
27-
"titleBar.activeBackground": "#1f2937",
28-
"titleBar.activeForeground": "#e7e7e7",
29-
"titleBar.inactiveBackground": "#1f293799",
30-
"titleBar.inactiveForeground": "#e7e7e799"
31-
},
3213
"python-envs.workspaceSearchPaths": [
3314
"backend/.venv",
3415
".venv",

frontend/cypress/tests/core/blocks-listings/blocks-search.cy.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,23 @@ describe('Search Block Tests', () => {
428428
});
429429

430430
it('Search block - test on edit sort on and sort order', () => {
431+
// Publish the created contents with different effective dates
432+
cy.setWorkflow({
433+
path: 'my-page',
434+
effective: '2025-01-01T08:00:00',
435+
expires: '2025-12-31T08:00:00',
436+
});
437+
cy.setWorkflow({
438+
path: 'my-folder',
439+
effective: '2024-01-01T08:00:00',
440+
expires: '2024-12-31T08:00:00',
441+
});
442+
cy.setWorkflow({
443+
path: 'my-event',
444+
effective: '2023-01-01T08:00:00',
445+
expires: '2023-12-31T08:00:00',
446+
});
447+
431448
cy.visit('/');
432449
cy.get('#toolbar-add > .icon').click();
433450
cy.get('#toolbar-add-document').click();
@@ -466,7 +483,7 @@ describe('Search Block Tests', () => {
466483
// reverse order
467484
cy.get('label[for=field-sort_order_boolean-2-query]').click();
468485
//check if the sorting order is working
469-
cy.get('.listing-item .title').first().contains('My Event');
486+
cy.get('.listing-item').first().contains('My page');
470487
cy.get('#select-listingblock-sort-on').click();
471488
cy.get('.react-select__menu .react-select__group')
472489
.first()
@@ -479,11 +496,12 @@ describe('Search Block Tests', () => {
479496
.click();
480497
cy.wait(5000);
481498

482-
cy.get('.listing-item .title').first().contains('My page');
499+
cy.get('.listing-item').first().contains('My page');
483500
//save page
484501
cy.get('#toolbar-save > .icon').click();
485502
cy.wait(500);
486503
});
504+
487505
// commenting out because we don't have ascending and descending options in VLT.
488506
// it('Search block - test on select 1 sort on in listing criteria sort on', () => {
489507
// cy.visit('/');

0 commit comments

Comments
 (0)