Skip to content

Commit

Permalink
fix for failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sgauruseu committed Jan 23, 2025
1 parent 2d18dd0 commit 9dda48d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions testing/tests/role.wizard.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe('Role Wizard and Statistics Panel spec', function () {
await roleWizard.pause(1000);
await roleWizard.waitAndClickOnSave();
// Verify the notification message:
let actualMessage = await roleWizard.waitForNotificationMessage();
assert.equal(actualMessage, 'Role was created', "Expected and actual messages are equal");
let actualMessages = await roleWizard.waitForNotificationMessages();
assert.ok(actualMessages.includes('Role was created'), "'Role was created' message should appear");
});

// verifies: xp-apps#93 Incorrect message appears when try to create a role with name that already in use #93
Expand Down
4 changes: 2 additions & 2 deletions testing/tests/wizard.toolbar.shortcut.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ describe(`wizard.toolbar.shortcut.spec, wizard's toolbar shortcut specification`
await groupWizard.hotKeySave();
await testUtils.saveScreenshot('group_shortcut_save');
// 4. Verify the notification message
let message = await groupWizard.waitForNotificationMessage();
assert.equal(message, appConst.NOTIFICATION_MESSAGE.GROUP_WAS_CREATED, "Group was created - message should appear");
let messages = await groupWizard.waitForNotificationMessages();
assert.ok(messages.includes(appConst.NOTIFICATION_MESSAGE.GROUP_WAS_CREATED), "Group was created - message should appear");
});

it(`GIVEN existing group is opened WHEN 'Ctrl+del' has been pressed THEN confirmation modal dialog should appear`,
Expand Down

0 comments on commit 9dda48d

Please sign in to comment.