Skip to content

Commit

Permalink
missing vocabulary message fix (#4187)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis authored Jan 20, 2023
1 parent 86a5c89 commit e16903a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions e2e/client/specs/users_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ describe('users', () => {
element(by.css('.modal__dialog .btn--primary')).click();
browser.sleep(2000); // wait for reload

// close "missing categories" vocabulary warning
// most likely it appears because refreshing the page causes test data to disappear
element(by.css('.p-dialog-header-icons')).click();

const header = element(by.css('[ng-hide="currentRoute.topTemplateUrl"]'));

browser.wait(ECE.presenceOf(header), 1000);
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate-instance-configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function maybeDisplayInvalidInstanceConfigurationMessage() {
const issues: Array<React.ReactNode> = [];

ng.get('vocabularies').getAllActiveVocabularies().then((vocabularies) => {
const categoriesMissing = vocabularies.find(({_id}) => _id === 'categories') != null;
const categoriesMissing = vocabularies.find(({_id}) => _id === 'categories') == null;

if (categoriesMissing) {
issues.push(
Expand Down

0 comments on commit e16903a

Please sign in to comment.