Skip to content
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
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 4

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.json]
indent_size = 2
56 changes: 56 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
env:
es6: true
node: true

plugins:
- wdio

extends:
- 'airbnb-base'
- plugin:wdio/recommended

globals:
assert: true
expect: true

parserOptions:
ecmaVersion: 6

root: true

rules:
comma-dangle:
- 'error'
- arrays: 'always-multiline'
objects: 'always-multiline'
imports: 'never'
exports: 'never'
functions: 'ignore'
global-require: 'off'
import/no-extraneous-dependencies: 0
indent:
- 'error'
- 4
- SwitchCase: 1
max-len:
- 'error'
- 80
- ignorePattern: '\s*\/\^(.*)\$\/,$'
new-cap:
- 'error'
- newIsCap: true
capIsNewExceptions:
- 'Given'
- 'When'
- 'Then'
require-jsdoc:
- 'error'
- require:
FunctionDeclaration: true
MethodDefinition: true
ClassDeclaration: true
strict: 'off'
valid-jsdoc:
- 'error'
- requireReturn: false
matchDescription: '.+'
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Logs
*.log

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

errorShots
coverage

# Editor files
.idea
.vscode
!.vscode/extensions.json
yarn.lock
.nvmrc
CHANGELOG.md
LICENSE
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
# SDET-Test-JS
# Virgin Holiday Technical Test

Using WebdriverIO & Cucumber.js

---

<img width="1058" alt="Screenshot 2019-11-17 at 16 44 18" src="https://user-images.githubusercontent.com/713952/69010695-02fc0980-095a-11ea-8175-68ce68ba0973.png">

## Quick start

1. Run _'yarn install'_ to install dependencies

## How to run the test

1. Run the following script `$ yarn test:features`
2. To debug, place _'browser.debug()'_ in the relevant steps and run `$ yarn test:debug`
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
plugins: [
'@babel/plugin-proposal-export-default-from',
],
presets: [
['@babel/preset-env', {
targets: {
node: 'current',
},
}],
],
};
15 changes: 0 additions & 15 deletions features/VirginHolidaysTest.feature

This file was deleted.

Loading