mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 21:25:59 +00:00
next screenshots
This commit is contained in:
@@ -28,7 +28,7 @@ describe('Data browser data', () => {
|
|||||||
cy.contains('Finished job script');
|
cy.contains('Finished job script');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Data archive editor', () => {
|
it('Data archive editor - macros', () => {
|
||||||
cy.testid('WidgetIconPanel_archive').click();
|
cy.testid('WidgetIconPanel_archive').click();
|
||||||
cy.contains('Album').click();
|
cy.contains('Album').click();
|
||||||
cy.testid('DataGrid_itemFilters').click();
|
cy.testid('DataGrid_itemFilters').click();
|
||||||
@@ -113,4 +113,48 @@ describe('Data browser data', () => {
|
|||||||
cy.contains('Check all').click();
|
cy.contains('Check all').click();
|
||||||
cy.screenshot('sqlgen');
|
cy.screenshot('sqlgen');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('Macros in DB', () => {
|
||||||
|
cy.contains('MySql-connection').click();
|
||||||
|
cy.contains('MyChinook').click();
|
||||||
|
cy.contains('Customer').click();
|
||||||
|
cy.contains('Leonie').click();
|
||||||
|
cy.contains('Ramos').click({ shiftKey: true });
|
||||||
|
cy.testid('DataGrid_itemColumns').click();
|
||||||
|
cy.testid('DataGrid_itemFilters').click();
|
||||||
|
cy.testid('DataGrid_itemReferences').click();
|
||||||
|
cy.testid('DataGrid_itemMacros').click();
|
||||||
|
cy.contains('Change text case').click();
|
||||||
|
cy.contains('NIELSEN');
|
||||||
|
cy.screenshot('macros');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Perspectives', () => {
|
||||||
|
cy.contains('MySql-connection').click();
|
||||||
|
cy.contains('MyChinook').click();
|
||||||
|
cy.contains('Artist').rightclick();
|
||||||
|
cy.contains('Design perspective query').click();
|
||||||
|
|
||||||
|
cy.testid('PerspectiveNodeRow_check_Artist_Album').click();
|
||||||
|
cy.testid('PerspectiveNodeRow_expand_Artist_Album').click();
|
||||||
|
cy.testid('PerspectiveNodeRow_check_Artist_Album_Track').click();
|
||||||
|
|
||||||
|
// check track is loaded
|
||||||
|
cy.contains('Put The Finger On You');
|
||||||
|
|
||||||
|
cy.screenshot('perspective1');
|
||||||
|
});
|
||||||
|
|
||||||
|
it.only('Query editor', () => {
|
||||||
|
cy.contains('MySql-connection').click();
|
||||||
|
cy.contains('MyChinook').click();
|
||||||
|
cy.contains('Customer').rightclick();
|
||||||
|
cy.contains('SQL template').click();
|
||||||
|
cy.contains('CREATE TABLE').click();
|
||||||
|
cy.get('body').realPress('PageDown');
|
||||||
|
cy.get('body').realType('select * from Album where Album.');
|
||||||
|
// code completion
|
||||||
|
cy.contains('ArtistId');
|
||||||
|
cy.screenshot('query');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -221,6 +221,11 @@ export abstract class PerspectiveTreeNode {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get pathIdentifier() {
|
||||||
|
if (this.parentNode) return `${this.parentNode.pathIdentifier}_${this.codeName}`;
|
||||||
|
return this.codeName;
|
||||||
|
}
|
||||||
|
|
||||||
hasDesignerIdInIncestors(designerId: string): boolean {
|
hasDesignerIdInIncestors(designerId: string): boolean {
|
||||||
if (designerId == this.designerId) return true;
|
if (designerId == this.designerId) return true;
|
||||||
return this.parentNode?.hasDesignerIdInIncestors(designerId) || false;
|
return this.parentNode?.hasDesignerIdInIncestors(designerId) || false;
|
||||||
|
|||||||
@@ -301,7 +301,15 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<span class={iconNames[icon] || icon} {title} class:padLeft class:padRight {style} on:click />
|
<span
|
||||||
|
class={iconNames[icon] || icon}
|
||||||
|
{title}
|
||||||
|
class:padLeft
|
||||||
|
class:padRight
|
||||||
|
{style}
|
||||||
|
on:click
|
||||||
|
data-testid={$$props['data-testid']}
|
||||||
|
/>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.padLeft {
|
.padLeft {
|
||||||
|
|||||||
@@ -36,9 +36,11 @@
|
|||||||
<span class="expandColumnIcon" style={`margin-right: ${5 + (node.level - (tempRoot?.level ?? 0)) * 10}px`}>
|
<span class="expandColumnIcon" style={`margin-right: ${5 + (node.level - (tempRoot?.level ?? 0)) * 10}px`}>
|
||||||
<FontIcon
|
<FontIcon
|
||||||
icon={node.isExpandable ? plusExpandIcon(node.isExpanded) : 'icon invisible-box'}
|
icon={node.isExpandable ? plusExpandIcon(node.isExpanded) : 'icon invisible-box'}
|
||||||
|
data-testid={`PerspectiveNodeRow_expand_${node.pathIdentifier}`}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
node.toggleExpanded();
|
node.toggleExpanded();
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -54,6 +56,7 @@
|
|||||||
on:change={() => {
|
on:change={() => {
|
||||||
node.toggleChecked();
|
node.toggleChecked();
|
||||||
}}
|
}}
|
||||||
|
data-testid={`PerspectiveNodeRow_check_${node.pathIdentifier}`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{#if node.secondaryCheckable}
|
{#if node.secondaryCheckable}
|
||||||
|
|||||||
@@ -660,7 +660,7 @@
|
|||||||
{#if tab.tabPreviewMode}
|
{#if tab.tabPreviewMode}
|
||||||
<span
|
<span
|
||||||
class="pin-button"
|
class="pin-button"
|
||||||
data-testid='TabsPanel_pinTabButton'
|
data-testid="TabsPanel_pinTabButton"
|
||||||
on:click={e => pinTab(tab.tabid)}
|
on:click={e => pinTab(tab.tabid)}
|
||||||
title="This tab is in preview mode, it will be replaced eg. when clicking table. Click to switch to normal mode. You could also double-click tab header."
|
title="This tab is in preview mode, it will be replaced eg. when clicking table. Click to switch to normal mode. You could also double-click tab header."
|
||||||
>
|
>
|
||||||
@@ -683,11 +683,21 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="icons-wrapper">
|
<div class="icons-wrapper">
|
||||||
{#if allowSplitTab}
|
{#if allowSplitTab}
|
||||||
<div class="icon-button" on:click={() => splitTab(multiTabIndex)} title="Split window">
|
<div
|
||||||
|
class="icon-button"
|
||||||
|
on:click={() => splitTab(multiTabIndex)}
|
||||||
|
title="Split window"
|
||||||
|
data-testid="TabsPanel_buttonSplit"
|
||||||
|
>
|
||||||
<FontIcon icon="icon split" />
|
<FontIcon icon="icon split" />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="icon-button" on:click={() => newQuery({ multiTabIndex })} title="New query">
|
<div
|
||||||
|
class="icon-button"
|
||||||
|
on:click={() => newQuery({ multiTabIndex })}
|
||||||
|
title="New query"
|
||||||
|
data-testid="TabsPanel_buttonNewQuery"
|
||||||
|
>
|
||||||
<FontIcon icon="icon add" />
|
<FontIcon icon="icon add" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user