Skip to content

Commit a3abb63

Browse files
authored
Start Weblinks cypress test suite (#560)
1 parent 64dec25 commit a3abb63

File tree

22 files changed

+2234
-178
lines changed

22 files changed

+2234
-178
lines changed

cypress.config.dist.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
const { defineConfig } = require('cypress')
1+
import { defineConfig } from 'cypress';
2+
import setupPlugins from './tests/cypress/plugins/index.mjs';
23

3-
module.exports = defineConfig({
4+
export default defineConfig({
45
fixturesFolder: 'tests/cypress/fixtures',
56
videosFolder: 'tests/cypress/output/videos',
67
screenshotsFolder: 'tests/cypress/output/screenshots',
78
viewportHeight: 1000,
89
viewportWidth: 1200,
9-
e2e: {
10-
setupNodeEvents(on, config) {},
10+
e2e: {
11+
setupNodeEvents(on, config) {
12+
setupPlugins(on, config);
13+
},
1114
baseUrl: 'http://localhost/',
1215
specPattern: [
1316
'tests/cypress/integration/install/*.cy.{js,jsx,ts,tsx}',
@@ -26,11 +29,12 @@ module.exports = defineConfig({
2629
2730
username: 'ci-admin',
2831
password: 'joomla-17082005',
29-
db_type: 'MySQLi',
30-
db_host: 'localhost',
31-
db_name: 'test_joomla',
32-
db_user: 'root',
33-
db_password: 'joomla_ut',
34-
db_prefix: 'jos_',
32+
db_type: process.env.DB_TYPE || 'MySQLi',
33+
db_host: process.env.DB_HOST || 'mysql',
34+
db_port: process.env.DB_PORT || '',
35+
db_name: process.env.DB_NAME || 'test_joomla',
36+
db_user: process.env.DB_USER || 'joomla_ut',
37+
db_password: process.env.DB_PASSWORD || 'joomla_ut',
38+
db_prefix: process.env.DB_PREFIX || 'mysql_',
3539
},
3640
})

0 commit comments

Comments
 (0)