Commit d471a72e authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Enabling CI for this project

parent b8f82cb2
Pipeline #2441 failed with stage
in 60 minutes and 4 seconds
......@@ -3,5 +3,8 @@
"env": {
"jasmine": true
},
"plugins": ["html"]
"plugins": ["html"],
"rules": {
"no-extra-semi": "warn"
}
}
\ No newline at end of file
image: centos:latest
before_script:
# add epel-repo to centos
- yum install -y epel-release
- yum update -y
# install dependencies
- yum install -y npm
- npm install
test:
script:
- npm test
const webpackConfig = require('./webpack.config.js')
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = config => {
config.set({
frameworks: ['jasmine'],
files: [
{pattern: 'test/**/*-test.js'}
],
browsers: ['Chrome'],
browsers: ['ChromeHeadless'],
preprocessors: {
'test/**/*-test.js': ['webpack', 'sourcemap']
},
......
This diff is collapsed.
......@@ -389,7 +389,7 @@
</script>
<style lang="sass" scoped>
@import './src/assets/base.sass'
@import './../../../src/assets/base.sass'
svg
.fjs-box
......
......@@ -403,7 +403,7 @@
<style lang="sass" scoped>
@import './src/assets/base.sass'
@import './../../../src/assets/base.sass'
.fjs-control-panel
.fjs-correlation-method
......
......@@ -470,8 +470,7 @@
</script>
<style lang="sass" scoped>
@import './src/assets/base.sass'
@import './../../../src/assets/base.sass'
.fjs-control-panel
.fjs-param-header
text-align: center
......
......@@ -344,7 +344,8 @@
</script>
<style lang="sass" scoped>
@import './src/assets/base.sass'
@import './../../../src/assets/base.sass'
svg
.fjs-loadings
stroke: #f00
......
......@@ -109,7 +109,7 @@
</script>
<style lang="sass" scoped>
@import './src/assets/base.sass'
@import './../../../src/assets/base.sass'
.fjs-control-panel
background: rgba(0, 0, 0, 0.5)
......
......@@ -7,7 +7,9 @@
v-for="item in items">
<div class="fjs-data-entry-header">
<input type="checkbox" :checked="!!~selectedIDs.indexOf(item.task_id)" />
<input type="checkbox"
:data-id="item.task_id"
:checked="!!~selectedIDs.indexOf(item.task_id)" />
<span :data-id="item.task_id"
:data-state="item.etl_state"
class="fjs-data-label"
......
......@@ -40,7 +40,7 @@
</script>
<style lang="sass" scoped>
@import './src/assets/base.sass'
@import './../../../src/assets/base.sass'
.fjs-task-view
display: flex
......
<!doctype html>
<meta charset="UTF-8">
<head>
<script src="http://localhost:8080/credentials.js"></script>
......@@ -35,7 +36,7 @@
thisBaseURL: 'http://127.0.0.1:5000',
fractalisBaseURL: 'http://127.0.0.1:5000',
getAuth () {
return credentials1
return {user: '', passwd: ''}
}
})
fjs.setSubsets([
......
......@@ -44,7 +44,7 @@ describe('DataBox', () => {
const data = {selectedIDs: ['A']}
const vm = new Component({propsData, data}).$mount()
expect(vm.$el.querySelectorAll('.fjs-data-entry-header').length).toBe(2)
expect(vm.$el.querySelector(`#fjs-checkbox-A-${vm._uid}`).checked).toBeTruthy()
expect(vm.$el.querySelector(`#fjs-checkbox-B-${vm._uid}`).checked).toBeFalsy()
expect(vm.$el.querySelector('.fjs-data-entry-header input[data-id="A"]').checked).toBeTruthy()
expect(vm.$el.querySelector('.fjs-data-entry-header input[data-id="B"]').checked).toBeFalsy()
})
})
import requestHandling from '../src/vue/mixins/run-analysis'
import runAnalysis from '../src/vue/mixins/run-analysis'
import RequestManager from '../src/services/request-manager'
import store from '../src/store/store'
describe('runAnalysis method', () => {
const runAnalysis = requestHandling.methods.runAnalysis
beforeEach(() => {
const requestManager = new RequestManager(
{handler: '', thisBaseURL: '', fractalisBaseURL: '', getAuth: () => {}})
......
......@@ -25,7 +25,7 @@ module.exports = {
devServer: {
hot: true,
inline: true,
publicPath: 'http://localhost:8080/',
publicPath: 'http://127.0.0.1:8080/',
headers: { 'Access-Control-Allow-Origin': '*' }
},
plugins: plugins,
......@@ -46,7 +46,7 @@ module.exports = {
loader: 'vue-loader',
options: {
loaders: {
sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax' // <style lang="sass">
sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
}
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment