mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 13:53:59 +00:00
ask user test
This commit is contained in:
@@ -82,6 +82,8 @@ describe('Run as portal', () => {
|
|||||||
cy.testid('DatabaseLoginModal_username').clear().type('postgres');
|
cy.testid('DatabaseLoginModal_username').clear().type('postgres');
|
||||||
cy.testid('DatabaseLoginModal_password').clear().type('Pwd2020Db');
|
cy.testid('DatabaseLoginModal_password').clear().type('Pwd2020Db');
|
||||||
cy.testid('DatabaseLoginModal_connect').click();
|
cy.testid('DatabaseLoginModal_connect').click();
|
||||||
|
cy.contains('Chinook').click();
|
||||||
|
cy.contains('album');
|
||||||
});
|
});
|
||||||
|
|
||||||
// it('import chinook DB', () => {
|
// it('import chinook DB', () => {
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
test_meta: true,
|
test_meta: true,
|
||||||
test({ connection, requestDbList }) {
|
test({ connection, requestDbList = false }) {
|
||||||
const subprocess = fork(
|
const subprocess = fork(
|
||||||
global['API_PACKAGE'] || process.argv[1],
|
global['API_PACKAGE'] || process.argv[1],
|
||||||
[
|
[
|
||||||
@@ -267,7 +267,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (test) {
|
if (test) {
|
||||||
const testRes = await this.test(res);
|
const testRes = await this.test({ connection: res });
|
||||||
if (testRes.msgtype == 'connected') {
|
if (testRes.msgtype == 'connected') {
|
||||||
volatileConnections[res._id] = res;
|
volatileConnections[res._id] = res;
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user