From 99b7f3bea8cb883938bdb8e182000e5c9093b763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Thu, 12 Dec 2024 17:58:55 +0100 Subject: [PATCH] fix: schema + e2e --- backend/data/src/main/resources/db/changelog/schema.xml | 2 +- e2e/cypress/e2e/projects/contentDelivery.cy.ts | 9 ++++----- e2e/cypress/support/dataCyType.d.ts | 2 +- .../projects/developer/contentDelivery/CdFilesRow.tsx | 3 ++- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/data/src/main/resources/db/changelog/schema.xml b/backend/data/src/main/resources/db/changelog/schema.xml index 2c15ea5a77..8be280aa3d 100644 --- a/backend/data/src/main/resources/db/changelog/schema.xml +++ b/backend/data/src/main/resources/db/changelog/schema.xml @@ -4011,7 +4011,7 @@ - + diff --git a/e2e/cypress/e2e/projects/contentDelivery.cy.ts b/e2e/cypress/e2e/projects/contentDelivery.cy.ts index bc8a55facd..6f8b8893f0 100644 --- a/e2e/cypress/e2e/projects/contentDelivery.cy.ts +++ b/e2e/cypress/e2e/projects/contentDelivery.cy.ts @@ -31,17 +31,16 @@ describe('Content delivery', () => { contentDeliveryTestData.clean(); }); - it('publishes content manually', () => { + it('publishes content manually and shows files', () => { gcyAdvanced({ value: 'content-delivery-list-item', name: 'Azure' }) .findDcy('content-delivery-item-publish') .click(); waitForGlobalLoading(); assertMessage('Content published successfully!'); gcyAdvanced({ value: 'content-delivery-list-item', name: 'Azure' }) - .findDcy('content-delivery-last-published-section') - .should('be.visible') - .findDcy('content-delivery-published-file') - .should('contain', 'en.json'); + .findDcy('content-delivery-files-button') + .click(); + gcy('content-delivery-published-file').should('contain', 'en.json'); }); it('creates content delivery', () => { diff --git a/e2e/cypress/support/dataCyType.d.ts b/e2e/cypress/support/dataCyType.d.ts index daeb192a16..77c2c2874e 100644 --- a/e2e/cypress/support/dataCyType.d.ts +++ b/e2e/cypress/support/dataCyType.d.ts @@ -140,13 +140,13 @@ declare namespace DataCy { "content-delivery-add-button" | "content-delivery-auto-publish-checkbox" | "content-delivery-delete-button" | + "content-delivery-files-button" | "content-delivery-form-custom-slug" | "content-delivery-form-name" | "content-delivery-form-save" | "content-delivery-item-edit" | "content-delivery-item-publish" | "content-delivery-item-type" | - "content-delivery-last-published-section" | "content-delivery-list-item" | "content-delivery-prune-before-publish-checkbox" | "content-delivery-published-file" | diff --git a/webapp/src/views/projects/developer/contentDelivery/CdFilesRow.tsx b/webapp/src/views/projects/developer/contentDelivery/CdFilesRow.tsx index bd55247adf..7dc65943da 100644 --- a/webapp/src/views/projects/developer/contentDelivery/CdFilesRow.tsx +++ b/webapp/src/views/projects/developer/contentDelivery/CdFilesRow.tsx @@ -36,12 +36,13 @@ export const CdFilesRow = ({ data }: Props) => { }; return ( - + {Boolean(data.lastPublishedFiles.length) && ( setShowAllFiles(!showAllFiles)} + data-cy="content-delivery-files-button" >