Skip to content

test(*): init hermione #1106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ node_modules/**
gemini/gemini-report/**
gemini/node_modules/**
gemini/gemini-ci.js
hermione/tests/**
32 changes: 32 additions & 0 deletions .hermione.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
baseUrl: 'http://localhost:8668',
sets: {
desktop: {
files: 'hermione/tests'
}
},

browsers: {
chrome: {
desiredCapabilities: {
browserName: 'chrome'
}
}
},
plugins: {
'gemini-babel7': true,
'hermione-react': {
port: 8668,
preparedTestsDir: './prepared-tests',
webpackConfig: './hermione/webpack.hermione.config.js'
}
},

system: {
debug: false,
tempDir: './hermione/',
ctx: {
projectRoot: './'
}
}
};
Binary file added hermione/screens/2f4629c/chrome/plain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions hermione/tests/input.hermione.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

// В шаблон мы должны вставить тестируемый компонент
const template = <div>TEMPLATE!!!!!!!!!!!!!!!!!!!</div>;

describe('first-test', function() {
it('should first time find hermione', function() {
return this.browser
.url('/input.hermione')
.assertView('plain', '[data-hermione-react]');
});
});
18 changes: 18 additions & 0 deletions hermione/webpack.hermione.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* eslint import/no-extraneous-dependencies: 0 */
/* eslint strict: [0, "global"] */

'use strict';

const path = require('path');
const merge = require('webpack-merge');
const WEBPACK_BASE_TEMPLATE = require('../webpack.base');

module.exports = merge.smart(WEBPACK_BASE_TEMPLATE, {
mode: 'development',
stats: 'verbose',
output: {
path: path.join(__dirname, 'dist'),
publicPath: '/',
filename: '[name].js'
}
});
Loading