mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +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');
|
||||
|
||||
// test connection
|
||||
cy.get('[data-testid=ConnectionTab_buttonTest]').click();
|
||||
cy.testid('ConnectionTab_buttonTest').click();
|
||||
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
|
||||
cy.get('[data-testid=ConnectionTab_buttonSave]').click();
|
||||
cy.get('[data-testid=ConnectionTab_buttonConnect]').click();
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
export let isInline = false;
|
||||
export let containerMaxWidth = undefined;
|
||||
export let flex1 = true;
|
||||
export let contentTestId = undefined;
|
||||
|
||||
export function setValue(index) {
|
||||
value = index;
|
||||
@@ -39,7 +40,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="content-container">
|
||||
<div class="content-container" data-testid={contentTestId}>
|
||||
{#each _.compact(tabs) as tab, index}
|
||||
<div class="container" class:isInline class:tabVisible={index == value} style:max-width={containerMaxWidth}>
|
||||
<svelte:component this={tab.component} {...tab.props} tabControlHiddenTab={index != value} />
|
||||
|
||||
@@ -239,6 +239,7 @@
|
||||
isInline
|
||||
containerMaxWidth="800px"
|
||||
flex1={false}
|
||||
contentTestId="ConnectionTab_tabControlContent"
|
||||
tabs={[
|
||||
{
|
||||
label: 'General',
|
||||
|
||||
Reference in New Issue
Block a user