V15 QA added test for issue 18555 (#18601)
* Added accceptance test for issue 18555 * Bumped version
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
Reference in New Issue
Block a user