V15 QA added test for issue 18555 (#18601)

* Added accceptance test for issue 18555

* Bumped version
This commit is contained in:
Anders Reus
2025-03-07 13:51:26 +01:00
committed by GitHub
parent c757f9fcb0
commit 50c3756eb0
3 changed files with 47 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
"hasInstallScript": true,
"dependencies": {
"@umbraco/json-models-builders": "^2.0.29",
"@umbraco/playwright-testhelpers": "^15.0.30",
"@umbraco/playwright-testhelpers": "^15.0.32",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"node-fetch": "^2.6.7"
@@ -67,10 +67,9 @@
}
},
"node_modules/@umbraco/playwright-testhelpers": {
"version": "15.0.30",
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.30.tgz",
"integrity": "sha512-T8vyQSQhZplSkevCD9WHbDn1YT6CQNxFrjZEu9fsR9XqXWGtxCHhWh0WhK3gKL2i9vPjysnFYlTCTXM11VzxAA==",
"license": "MIT",
"version": "15.0.32",
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-15.0.32.tgz",
"integrity": "sha512-4wzLTtqbzIc0TokP+/nC/vbKfcboYQFGam6eLzZj4oMQmkBExxv5EBhI06qrpst8/rQc5OK4TTwJAGL3GCuKew==",
"dependencies": {
"@umbraco/json-models-builders": "2.0.30",
"node-fetch": "^2.6.7"

View File

@@ -21,7 +21,7 @@
},
"dependencies": {
"@umbraco/json-models-builders": "^2.0.29",
"@umbraco/playwright-testhelpers": "^15.0.30",
"@umbraco/playwright-testhelpers": "^15.0.32",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"node-fetch": "^2.6.7"

View File

@@ -0,0 +1,42 @@
import {ConstantHelper, test} from '@umbraco/playwright-testhelpers';
const documentTypeName = "DocumentType";
const contentName = "Content";
const languageName = 'Danish';
let documentTypeId = null;
test.beforeEach(async ({umbracoApi}) => {
await umbracoApi.documentType.ensureNameNotExists(documentTypeName);
documentTypeId = await umbracoApi.documentType.createDocumentTypeWithAllowVaryByCulture(documentTypeName);
await umbracoApi.document.createDefaultDocumentWithEnglishCulture(contentName, documentTypeId);
await umbracoApi.language.ensureNameNotExists(languageName);
await umbracoApi.language.createDanishLanguage();
});
test.afterEach(async ({umbracoApi}) => {
await umbracoApi.documentType.ensureNameNotExists(documentTypeName);
await umbracoApi.language.ensureNameNotExists(languageName);
});
// https://github.com/umbraco/Umbraco-CMS/issues/18555
test.skip('Can schedule publish after unselecting all languages', async ({umbracoUi}) => {
// Arrange
await umbracoUi.goToBackOffice();
await umbracoUi.content.goToSection(ConstantHelper.sections.content);
// Act
// Open schedule modal and click schedule
await umbracoUi.content.changeDocumentSectionLanguage(languageName);
await umbracoUi.content.goToContentWithName('(' + contentName + ')');
await umbracoUi.content.enterContentName('Tester');
await umbracoUi.content.clickViewMoreOptionsButton();
await umbracoUi.content.clickScheduleButton();
await umbracoUi.waitForTimeout(500);
await umbracoUi.content.clickSelectAllCheckbox();
await umbracoUi.waitForTimeout(500);
await umbracoUi.content.clickSelectAllCheckbox();
await umbracoUi.content.clickButtonWithName(contentName);
// Assert
await umbracoUi.content.doesSchedulePublishModalButtonContainDisabledTag(false);
});