mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 02:06:01 +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', () => {
|
it('Data grid screenshots', () => {
|
||||||
cy.contains('MySql-connection').click();
|
cy.contains('MySql-connection').click();
|
||||||
cy.window().then(win => {
|
|
||||||
win.__changeCurrentTheme('theme-dark');
|
|
||||||
});
|
|
||||||
|
|
||||||
cy.contains('MyChinook').click();
|
cy.contains('MyChinook').click();
|
||||||
|
|
||||||
@@ -129,6 +126,15 @@ describe('Data browser data', () => {
|
|||||||
cy.themeshot('data-browser-form-view');
|
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', () => {
|
it('SQL Gen', () => {
|
||||||
cy.contains('Postgres-connection').click();
|
cy.contains('Postgres-connection').click();
|
||||||
cy.contains('PgChinook').rightclick();
|
cy.contains('PgChinook').rightclick();
|
||||||
|
|||||||
@@ -178,6 +178,7 @@
|
|||||||
placeholder="Search columns"
|
placeholder="Search columns"
|
||||||
value={currentFilter}
|
value={currentFilter}
|
||||||
onChange={value => display.setSearchInColumns(value)}
|
onChange={value => display.setSearchInColumns(value)}
|
||||||
|
data-testid="ColumnManager_searchColumns"
|
||||||
/>
|
/>
|
||||||
<CloseSearchButton filter={currentFilter} onClearFilter={() => display.setSearchInColumns('')} />
|
<CloseSearchButton filter={currentFilter} onClearFilter={() => display.setSearchInColumns('')} />
|
||||||
{#if isDynamicStructure && !isJsonView}
|
{#if isDynamicStructure && !isJsonView}
|
||||||
|
|||||||
Reference in New Issue
Block a user