Skip to content

Commit

Permalink
Fix failed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivangi Mittal authored and ci-build committed May 3, 2024
1 parent 33f28ac commit 6c8c3ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui.tests/test-module/specs/wizard/wizard.locale.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ describe('Locale - Authoring Test', function () {
beforeEach(() => {
cy.intercept("**/themes*").as("getThemesRequest");
cy.intercept("**/templates*").as("templates");
cy.intercept({ method: "POST", url: "**/forms*" }).as(
"createFormRequest"
);
});

it('Create Form in German language', function (){
Expand All @@ -34,6 +37,9 @@ describe('Locale - Authoring Test', function () {
cy.get('input[name="submitDialogTitle"]').type('language-test');
cy.get('[data-testid="modal"]').contains('button', 'Erstellen').last().click();
});
cy.wait("@createFormRequest").then((interception) => {
assert.equal(interception.response?.statusCode, 200);
});
});
cy.openPage('/editor.html/content/forms/af/language-test.html');
const dataPath = "/content/forms/af/language-test/jcr:content/guideContainer/*",
Expand Down

0 comments on commit 6c8c3ad

Please sign in to comment.