mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
SYNC: column search test+screenshot
This commit is contained in:
committed by
Diflow
parent
3c5523894d
commit
73e73ffe58
@@ -100,9 +100,6 @@ describe('Data browser data', () => {
|
||||
|
||||
it('Data grid screenshots', () => {
|
||||
cy.contains('MySql-connection').click();
|
||||
cy.window().then(win => {
|
||||
win.__changeCurrentTheme('theme-dark');
|
||||
});
|
||||
|
||||
cy.contains('MyChinook').click();
|
||||
|
||||
@@ -129,6 +126,15 @@ describe('Data browser data', () => {
|
||||
cy.themeshot('data-browser-form-view');
|
||||
});
|
||||
|
||||
it.only('Column search', () => {
|
||||
cy.contains('MySql-connection').click();
|
||||
cy.contains('MyChinook').click();
|
||||
cy.contains('Customer').click();
|
||||
cy.testid('ColumnManager_searchColumns').clear().type('name,id{enter}');
|
||||
cy.contains('Company').should('not.exist');
|
||||
cy.themeshot('data-browser-column-search');
|
||||
});
|
||||
|
||||
it('SQL Gen', () => {
|
||||
cy.contains('Postgres-connection').click();
|
||||
cy.contains('PgChinook').rightclick();
|
||||
|
||||
@@ -178,6 +178,7 @@
|
||||
placeholder="Search columns"
|
||||
value={currentFilter}
|
||||
onChange={value => display.setSearchInColumns(value)}
|
||||
data-testid="ColumnManager_searchColumns"
|
||||
/>
|
||||
<CloseSearchButton filter={currentFilter} onClearFilter={() => display.setSearchInColumns('')} />
|
||||
{#if isDynamicStructure && !isJsonView}
|
||||
|
||||
Reference in New Issue
Block a user