mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
SYNC: fragment shots
This commit is contained in:
committed by
Diflow
parent
85b72af3bb
commit
d539912762
@@ -20,9 +20,15 @@ describe('Add connection', () => {
|
|||||||
cy.get('[data-testid=ConnectionDriverFields_displayName]').clear().type('test-mysql-1');
|
cy.get('[data-testid=ConnectionDriverFields_displayName]').clear().type('test-mysql-1');
|
||||||
|
|
||||||
// test connection
|
// test connection
|
||||||
cy.get('[data-testid=ConnectionTab_buttonTest]').click();
|
cy.testid('ConnectionTab_buttonTest').click();
|
||||||
cy.contains('Connected:');
|
cy.contains('Connected:');
|
||||||
|
|
||||||
|
cy.testid('ConnectionTab_tabSshTunnel').click();
|
||||||
|
cy.testid('ConnectionTab_tabControlContent').themeshot('fragment-connection-sshtunnel', { padding: 50 });
|
||||||
|
|
||||||
|
cy.testid('ConnectionTab_tabSsl').click();
|
||||||
|
cy.testid('ConnectionTab_tabControlContent').themeshot('fragment-connection-ssl', { padding: 50 });
|
||||||
|
|
||||||
// save and connect
|
// save and connect
|
||||||
cy.get('[data-testid=ConnectionTab_buttonSave]').click();
|
cy.get('[data-testid=ConnectionTab_buttonSave]').click();
|
||||||
cy.get('[data-testid=ConnectionTab_buttonConnect]').click();
|
cy.get('[data-testid=ConnectionTab_buttonConnect]').click();
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
export let isInline = false;
|
export let isInline = false;
|
||||||
export let containerMaxWidth = undefined;
|
export let containerMaxWidth = undefined;
|
||||||
export let flex1 = true;
|
export let flex1 = true;
|
||||||
|
export let contentTestId = undefined;
|
||||||
|
|
||||||
export function setValue(index) {
|
export function setValue(index) {
|
||||||
value = index;
|
value = index;
|
||||||
@@ -39,7 +40,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content-container">
|
<div class="content-container" data-testid={contentTestId}>
|
||||||
{#each _.compact(tabs) as tab, index}
|
{#each _.compact(tabs) as tab, index}
|
||||||
<div class="container" class:isInline class:tabVisible={index == value} style:max-width={containerMaxWidth}>
|
<div class="container" class:isInline class:tabVisible={index == value} style:max-width={containerMaxWidth}>
|
||||||
<svelte:component this={tab.component} {...tab.props} tabControlHiddenTab={index != value} />
|
<svelte:component this={tab.component} {...tab.props} tabControlHiddenTab={index != value} />
|
||||||
|
|||||||
@@ -239,6 +239,7 @@
|
|||||||
isInline
|
isInline
|
||||||
containerMaxWidth="800px"
|
containerMaxWidth="800px"
|
||||||
flex1={false}
|
flex1={false}
|
||||||
|
contentTestId="ConnectionTab_tabControlContent"
|
||||||
tabs={[
|
tabs={[
|
||||||
{
|
{
|
||||||
label: 'General',
|
label: 'General',
|
||||||
|
|||||||
Reference in New Issue
Block a user