-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
2,275 additions
and
1,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ package-lock.json | |
/public | ||
e2e/cypress/videos | ||
e2e/cypress/screenshots | ||
hs_err_pid* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# --- !Ups | ||
|
||
-- Ensure that we do not allow duplicate solr indexes with same name. | ||
create unique index solr_index_field_name on solr_index (name); | ||
|
||
-- Ensure that we do not allow duplicate suggested solr fields for the same solr index. | ||
create unique index suggested_solr_field_name_solr_index on suggested_solr_field (solr_index_id, name); | ||
|
||
|
||
|
||
# --- !Downs | ||
|
||
drop index solr_index_field_name | ||
drop index suggested_solr_field_name_solr_index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//import { truncateTable } from '../src/sql'; | ||
|
||
context('SMUI app', () => { | ||
beforeEach(() => { | ||
//truncateTable('search_input'); | ||
cy.visit('/'); | ||
}); | ||
|
||
it('should be able to create a new Rules Collection', () => { | ||
cy.contains('Admin').click(); | ||
|
||
var listingCount = 0; | ||
cy.get('app-smui-admin-rules-collection-list .list-group-item').should(collections => { | ||
listingCount = collections.length; | ||
}); | ||
|
||
cy.get('#collectionName').type('testRulesCollection'); | ||
cy.get('#collectionSearchEngineName').type('test_search_engine'); | ||
cy.get('#createRulesCollectionBtn').click(); | ||
|
||
cy.wait(2000) | ||
|
||
cy.get('app-smui-admin-rules-collection-list .list-group-item').should(collections => { | ||
expect(collections).to.have.length(listingCount + 1); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.