mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[bitnami/*] Update Cypress tests to version 13 (#22862)
* [bitnami/*] Update Cypress tests to version 13 Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Adapt more tests Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Add more tests II Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Add more tests III Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Add more tests IV Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Remove fix for Kibana tests running in older Cypress versions Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Update TESTING.md Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> --------- Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
pageLoadTimeout: 240000,
|
||||
defaultCommandTimeout: 80000,
|
||||
env: {
|
||||
username: 'user',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"pageLoadTimeout": 240000,
|
||||
"defaultCommandTimeout":80000,
|
||||
|
||||
"env": {
|
||||
"username": "user",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'vib-user',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
defaultCommandTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"env": {
|
||||
"username": "vib-user",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
},
|
||||
"defaultCommandTimeout": 30000
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'vibuser@example.com',
|
||||
password: 'bitnami!1234',
|
||||
},
|
||||
defaultCommandTimeout: 60000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"username": "vibuser@example.com",
|
||||
"password": "bitnami!1234"
|
||||
},
|
||||
"baseUrl": "http://localhost",
|
||||
"defaultCommandTimeout": 60000
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'admin',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
defaultCommandTimeout: 30000,
|
||||
pageLoadTimeout: 120000,
|
||||
viewportWidth: 1920,
|
||||
viewportHeight: 1080,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'https://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"baseUrl": "https://localhost",
|
||||
"env": {
|
||||
"username": "admin",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
},
|
||||
"defaultCommandTimeout": 30000,
|
||||
"pageLoadTimeout": 120000,
|
||||
"viewportWidth": 1920,
|
||||
"viewportHeight": 1080
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
defaultCommandTimeout: 80000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"defaultCommandTimeout": 80000
|
||||
}
|
||||
+1
-1
@@ -23,7 +23,7 @@ it('allows submitting a workflow using a template created from a file', () => {
|
||||
cy.get('[type="file"]').selectFile(newWorkflow, { force: true });
|
||||
cy.contains('Create').click();
|
||||
});
|
||||
cy.get('.top-bar').should('be.visible').within(() => {
|
||||
cy.get('.top-bar').first().should('be.visible').within(() => {
|
||||
cy.contains(workflowName);
|
||||
});
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
defaultCommandTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"defaultCommandTimeout": 30000
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'test_user',
|
||||
password: 'bitnami1234',
|
||||
},
|
||||
hosts: {
|
||||
'vmware-clickhouse.my': '{{ TARGET_IP }}',
|
||||
},
|
||||
defaultCommandTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
},
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"username": "test_user",
|
||||
"password": "bitnami1234"
|
||||
},
|
||||
"hosts": {
|
||||
"vmware-clickhouse.my": "{{ TARGET_IP }}"
|
||||
},
|
||||
"defaultCommandTimeout": 30000
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'bitnamiUser',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
hosts: {
|
||||
'vmware-concourse.my': '{{ TARGET_IP }}',
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
},
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"username": "bitnamiUser",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
},
|
||||
"hosts": {
|
||||
"vmware-concourse.my": "{{ TARGET_IP }}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'user',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
hosts: {
|
||||
'bitnami-discourse.my': '{{ TARGET_IP }}',
|
||||
},
|
||||
defaultCommandTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
},
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"username": "user",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
},
|
||||
"hosts": {
|
||||
"bitnami-discourse.my": "{{ TARGET_IP }}"
|
||||
},
|
||||
"defaultCommandTimeout": 30000
|
||||
}
|
||||
+1
@@ -22,6 +22,7 @@ it('allows to sign up', () => {
|
||||
|
||||
it('allows to create a topic', () => {
|
||||
cy.login();
|
||||
cy.contains('Got it').click();
|
||||
cy.contains('button', 'New Topic').click();
|
||||
cy.fixture('topics').then((topic) => {
|
||||
cy.get('#reply-title').type(`${topic.newTopic.title}-${random}`);
|
||||
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
pageLoadTimeout: 240000,
|
||||
defaultCommandTimeout: 80000,
|
||||
env: {
|
||||
username: 'user',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"pageLoadTimeout": 240000,
|
||||
"defaultCommandTimeout": 80000,
|
||||
"env": {
|
||||
"username": "user",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'test_user',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
defaultCommandTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"env": {
|
||||
"username": "test_user",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
},
|
||||
"defaultCommandTimeout": 30000
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'bitnamiTest',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
baseDN: 'UID=c-1CCXmPAsNWmZuDtQQ8FHl7tcVdjCiNTH,O=ExampleCA,C=SE',
|
||||
},
|
||||
e2e: {
|
||||
// We've imported your old cypress plugins here.
|
||||
// You may want to clean this up later by importing these.
|
||||
setupNodeEvents(on, config) {
|
||||
return require('./cypress/plugins/index.js')(on, config)
|
||||
},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"env": {
|
||||
"username": "bitnamiTest",
|
||||
"password": "ComplicatedPassword123!4",
|
||||
"baseDN": "UID=c-1CCXmPAsNWmZuDtQQ8FHl7tcVdjCiNTH,O=ExampleCA,C=SE"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
responseTimeout: 30000,
|
||||
env: {
|
||||
nodeNumber: 4,
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"responseTimeout": 30000,
|
||||
"env": {
|
||||
"nodeNumber": 4
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
defaultCommandTimeout: 90000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"defaultCommandTimeout": 90000
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
email: 'vim-tests@example.com',
|
||||
username: 'bitnamiTest',
|
||||
password: 'Complicated123!4',
|
||||
},
|
||||
hosts: {
|
||||
'vmware-ghost.my': '{{ TARGET_IP }}',
|
||||
},
|
||||
defaultCommandTimeout: 60000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
},
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"email": "vim-tests@example.com",
|
||||
"username": "bitnamiTest",
|
||||
"password": "Complicated123!4"
|
||||
},
|
||||
"hosts": {
|
||||
"vmware-ghost.my": "{{ TARGET_IP }}"
|
||||
},
|
||||
"defaultCommandTimeout": 60000
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'vib-user@example.com',
|
||||
password: 'bitnami!1234',
|
||||
},
|
||||
defaultCommandTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"username": "vib-user@example.com",
|
||||
"password": "bitnami!1234"
|
||||
},
|
||||
"baseUrl": "http://localhost",
|
||||
"defaultCommandTimeout": 30000
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
responseTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"responseTimeout": 30000
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
responseTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"responseTimeout": 30000
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
pageLoadTimeout: 120000,
|
||||
defaultCommandTimeout: 30000,
|
||||
env: {
|
||||
username: 'test_admin',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost/',
|
||||
},
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost/",
|
||||
"pageLoadTimeout": 120000,
|
||||
"defaultCommandTimeout": 30000,
|
||||
"env": {
|
||||
"username": "test_admin",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
}
|
||||
}
|
||||
+5
-6
@@ -29,14 +29,13 @@ it('allows creating and deleting a data source', () => {
|
||||
cy.fixture('datasources').then((datasource) => {
|
||||
cy.contains('button', datasource.newDatasource.type).click({ force: true });
|
||||
});
|
||||
cy.get('#basic-settings-name').invoke('attr', 'value').as('datasourceName');
|
||||
cy.visit('/datasources');
|
||||
cy.get('@datasourceName').then((datasourceName) => {
|
||||
cy.get('#basic-settings-name').invoke('attr', 'value').then((datasourceName) => {
|
||||
cy.visit('/datasources');
|
||||
cy.contains('a', datasourceName).click({ force: true });
|
||||
cy.contains('button', 'Delete').click();
|
||||
cy.get('[data-testid*="Confirm"]').click();
|
||||
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
|
||||
});
|
||||
cy.contains('button', 'Delete').click();
|
||||
cy.get('[data-testid*="Confirm"]').click();
|
||||
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
|
||||
});
|
||||
|
||||
it('checks admin settings endpoint', () => {
|
||||
@@ -0,0 +1,18 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
compactorReplicaCount: '2',
|
||||
distributorReplicaCount: '1',
|
||||
ingesterReplicaCount: '1',
|
||||
querierReplicaCount: '1',
|
||||
metricsReplicaCount: '1',
|
||||
gossipRingPort: '7946',
|
||||
},
|
||||
e2e: {
|
||||
// We've imported your old cypress plugins here.
|
||||
// You may want to clean this up later by importing these.
|
||||
setupNodeEvents(on, config) {
|
||||
return require('./cypress/plugins/index.js')(on, config)
|
||||
},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost",
|
||||
"env": {
|
||||
"compactorReplicaCount": "2",
|
||||
"distributorReplicaCount": "1",
|
||||
"ingesterReplicaCount": "1",
|
||||
"querierReplicaCount": "1",
|
||||
"metricsReplicaCount": "1",
|
||||
"gossipRingPort": "7946"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
pageLoadTimeout: 120000,
|
||||
defaultCommandTimeout: 30000,
|
||||
env: {
|
||||
username: 'test_admin',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost/',
|
||||
},
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost/",
|
||||
"pageLoadTimeout": 120000,
|
||||
"defaultCommandTimeout": 30000,
|
||||
"env": {
|
||||
"username": "test_admin",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
}
|
||||
}
|
||||
+5
-6
@@ -30,14 +30,13 @@ it('allows creating and deleting a data source', () => {
|
||||
cy.fixture('datasources').then((datasource) => {
|
||||
cy.contains('button', datasource.newDatasource.type).click({ force: true });
|
||||
});
|
||||
cy.get('#basic-settings-name').invoke('attr', 'value').as('datasourceName');
|
||||
cy.visit('/datasources');
|
||||
cy.get('@datasourceName').then((datasourceName) => {
|
||||
cy.get('#basic-settings-name').invoke('attr', 'value').then((datasourceName) => {
|
||||
cy.visit('/datasources');
|
||||
cy.contains('a', datasourceName).click({ force: true });
|
||||
cy.contains('button', 'Delete').click();
|
||||
cy.get('[data-testid*="Confirm"]').click();
|
||||
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
|
||||
});
|
||||
cy.contains('button', 'Delete').click();
|
||||
cy.get('[data-testid*="Confirm"]').click();
|
||||
cy.get('[data-testid*="data-testid Alert success"]').should('be.visible');
|
||||
});
|
||||
|
||||
it('checks admin settings endpoint', () => {
|
||||
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright VMware, Inc.
|
||||
* SPDX-License-Identifier: APACHE-2.0
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
username: 'admin',
|
||||
password: 'ComplicatedPassword123!4',
|
||||
},
|
||||
defaultCommandTimeout: 30000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
baseUrl: 'https://localhost/',
|
||||
},
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"baseUrl": "https://localhost/",
|
||||
"env": {
|
||||
"username": "admin",
|
||||
"password": "ComplicatedPassword123!4"
|
||||
},
|
||||
"defaultCommandTimeout": 30000
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user