mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
SYNC: private cloud test
This commit is contained in:
committed by
Diflow
parent
eba16cc15d
commit
c641830825
34
e2e-tests/cypress/e2e/cloud.cy.js
Normal file
34
e2e-tests/cypress/e2e/cloud.cy.js
Normal file
@@ -0,0 +1,34 @@
|
||||
Cypress.on('uncaught:exception', (err, runnable) => {
|
||||
// if the error message matches the one about WorkerGlobalScope importScripts
|
||||
if (err.message.includes("Failed to execute 'importScripts' on 'WorkerGlobalScope'")) {
|
||||
// return false to let Cypress know we intentionally want to ignore this error
|
||||
return false;
|
||||
}
|
||||
// otherwise let Cypress throw the error
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.visit('http://localhost:3000');
|
||||
cy.viewport(1250, 900);
|
||||
});
|
||||
|
||||
describe('Cloud tests', () => {
|
||||
it('Private cloud', () => {
|
||||
cy.testid('WidgetIconPanel_cloudAccount').click();
|
||||
|
||||
cy.origin('https://identity.dbgate.io', () => {
|
||||
cy.contains('Sign in with GitHub').click();
|
||||
});
|
||||
|
||||
cy.origin('https://github.com', () => {
|
||||
cy.get('#login_field').type('dbgatetest');
|
||||
cy.get('#password').type('Pwd2020Db');
|
||||
cy.get('input[type="submit"]').click();
|
||||
});
|
||||
|
||||
cy.contains('Testing Connections').rightclick();
|
||||
cy.contains('Administrate access').click();
|
||||
cy.contains('User email');
|
||||
cy.themeshot('administer-shared-folder');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user