Fixed tests after merge

This commit is contained in:
Bjarke Berg
2021-12-14 21:24:19 +01:00
parent 69b8b64b54
commit 341aac44b5
5 changed files with 19 additions and 2342 deletions

View File

@@ -436,7 +436,7 @@ context('Content', () => {
cy.umbracoTreeItem("content", [nodeName]).click();
// Assert
cy.get('[data-element="node-info-status"]').find('.umb-badge').should('contain.text', "Draft");
cy.get('[data-element="node-info-status"]').find('.umb-badge').should('contain.text', "Unpublished");
// Clean up (content is automatically deleted when document types are gone)
cy.umbracoEnsureDocumentTypeNameNotExists(rootDocTypeName);

View File

@@ -60,16 +60,16 @@ context('Routing', () => {
// Ensure cleaned before tests run
cy.deleteAllContent();
cy.umbracoEnsureDocumentTypeNameNotExists(rootDocTypeName);
cy.umbracoEnsureLanguageNotExists(danishCulture);
cy.umbracoEnsureLanguageNotExists(swedishCulture);
cy.umbracoEnsureLanguageCultureNotExists(danishCulture);
cy.umbracoEnsureLanguageCultureNotExists(swedishCulture);
});
afterEach(() => {
// Cleanup after tests
cy.deleteAllContent();
cy.umbracoEnsureDocumentTypeNameNotExists(rootDocTypeName);
cy.umbracoEnsureLanguageNotExists(danishCulture);
cy.umbracoEnsureLanguageNotExists(swedishCulture);
cy.umbracoEnsureLanguageCultureNotExists(danishCulture);
cy.umbracoEnsureLanguageCultureNotExists(swedishCulture);
})
it('Root node published in language A, Child node published in language A', () => {

View File

@@ -23,6 +23,8 @@ context('Members', () => {
//Type name
cy.umbracoEditorHeaderName(name);
cy.get('[data-element="sub-view-umbMembership"]').click();
cy.get('input#_umb_login').clear().type(email);
cy.get('input#_umb_email').clear().type(email);
cy.get('input#password').clear().type(password, { timeout: passwordTimeout });

View File

@@ -81,20 +81,24 @@ function runBackOfficeIntroTour(percentageComplete, buttonText, timeout) {
cy.get('.umb-tour-step__footer').should('be.visible');
cy.get('.umb-tour-step__counter').should('be.visible');
for (let i = 1; i < 7; i++) {
cy.get('.umb-tour-step__counter').contains(i + '/12');
for (let i = 1; i < 8; i++) {
if(i == 4) {
continue
}
cy.get('.umb-tour-step__counter').contains(i + '/13');
cy.get('.umb-tour-step__footer .umb-button').should('be.visible').click();
}
cy.umbracoGlobalUser().click()
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains('8/12');
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains('9/13');
cy.get('.umb-tour-step__footer .umb-button').should('be.visible').click();
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains('9/12');
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains('10/13');
cy.get('.umb-overlay-drawer__align-right .umb-button').should('be.visible').click();
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains('10/12');
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains('11/13');
cy.umbracoGlobalHelp().click()
for (let i = 11; i < 13; i++) {
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains(i + '/12');
for (let i = 12; i <= 13; i++) {
cy.get('.umb-tour-step__counter', { timeout: timeout }).contains(i + '/13');
cy.get('.umb-tour-step__footer .umb-button').should('be.visible').click();
}
cy.get('.umb-tour-step__footer .umb-button').should('be.visible').click();

File diff suppressed because it is too large Load Diff