Skip to content

Commit

Permalink
Adjust the test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sviatlana-stsiapanava committed Dec 23, 2024
1 parent e804764 commit 23387da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('bulk-edit', () => {
describe('logs', () => {
describe('csv approach', () => {
before('create test data', () => {
cy.clearLocalStorage();
cy.createTempUser([]).then((userProperties) => {
userWithoutPermissions = userProperties;
});
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/bulk-edit/query/bulk-edit-query-enum.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ describe('bulk-edit', () => {
QueryModal.testQueryDisabled();
QueryModal.runQueryDisabled();
QueryModal.chooseFromValueMultiselect(ITEM_STATUS_NAMES.AVAILABLE);
QueryModal.chooseFromValueMultiselect(ITEM_STATUS_NAMES.MISSING);
QueryModal.chooseFromValueMultiselect(ITEM_STATUS_NAMES.ON_ORDER);
QueryModal.verifyQueryAreaContent(
`(items.status_name not in ("${ITEM_STATUS_NAMES.AVAILABLE}","${ITEM_STATUS_NAMES.MISSING}"))`,
`(items.status_name not in ("${ITEM_STATUS_NAMES.AVAILABLE}","${ITEM_STATUS_NAMES.ON_ORDER}"))`,
);
QueryModal.testQueryDisabled(false);
QueryModal.runQueryDisabled();
Expand Down
5 changes: 3 additions & 2 deletions cypress/e2e/settings/tenant/service-points.cy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import permissions from '../../../support/dictionary/permissions';
import ServicePoints from '../../../support/fragments/settings/tenant/servicePoints/servicePoints';
import TopMenu from '../../../support/fragments/topMenu';
import Users from '../../../support/fragments/users/users';
import getRandomPostfix from '../../../support/utils/stringTools';
import TopMenuNavigation from '../../../support/fragments/topMenuNavigation';
import { APPLICATION_NAMES } from '../../../support/constants';

let user;
const newServicePoint = {
Expand All @@ -19,7 +20,7 @@ describe('Settings: Tenant', () => {
user = userProperties;
cy.login(user.username, user.password);
cy.wait(2000);
cy.visit(TopMenu.settingsPath);
TopMenuNavigation.navigateToApp(APPLICATION_NAMES.SETTINGS);
ServicePoints.goToServicePointsTab();
},
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default {
]);
if (newCode) cy.do(TextField({ name: 'code' }).fillIn(newCode));
if (newDisplayName) cy.do(TextField({ name: 'discoveryDisplayName' }).fillIn(newDisplayName));
cy.wait(3000);
cy.do(saveAndCloseButton.click());
},

Expand Down

0 comments on commit 23387da

Please sign in to comment.