-
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.
Merge branch 'o19s-introduce_basic_admin_screen' into smui_v3_13_3
# Conflicts: # e2e/yarn.lock
- Loading branch information
Showing
30 changed files
with
2,226 additions
and
1,273 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
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.