Skip to content

Commit

Permalink
Merge pull request #65 from Marketionist/dependencies-update
Browse files Browse the repository at this point in the history
Update prepare script configs
  • Loading branch information
Marketionist authored Aug 26, 2022
2 parents dfbee43 + 468bb8e commit 69a64f9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions utils/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const writeFile = util.promisify(fs.writeFile);
const pathToTestsDir = path.join(__dirname, '..', '..', '..', 'tests');
const pathToPageObjectsDir = path.join(pathToTestsDir, 'page-objects');
const pathToTestExample = path.join(pathToTestsDir, 'test-example.feature');

const testExampleContent = `@fast @example-tests
Feature: Running Cucumber with WebdriverIO - test feature example
Expand All @@ -23,8 +24,10 @@ Feature: Running Cucumber with WebdriverIO - test feature example
When user clicks linkAbout from test-page-example
And user clicks "test-page-example"."linkOurProducts"
Then the title should contain "Google"`;

const pathToPageObjectsExample = path.join(pathToPageObjectsDir,
'test-page-example.js');

const pageObjectsExampleContent = `'use strict';
let testPage = {
Expand All @@ -37,7 +40,9 @@ let testPage = {
testPage.linkOurProducts = \`\${testPage.header} a[class*="link-products"]\`;
module.exports = testPage;`;

const pathToConfigExample = path.join(pathToTestsDir, 'wdio.conf.js');

const configExampleContent = `const path = require('path');
exports.config = {
Expand All @@ -63,7 +68,7 @@ exports.config = {
],
// Patterns to exclude.
exclude: [
// 'path/to/excluded/files'
path.join(__dirname, 'node_modules', '**')
],
//
// ============
Expand All @@ -81,7 +86,7 @@ exports.config = {
// and 30 processes will get spawned. The property handles how many capabilities
// from the same test should run tests.
//
maxInstances: 10,
maxInstances: 1,
//
// If you have trouble getting all important capabilities together, check out the
// Sauce Labs platform configurator - a great tool to configure your capabilities:
Expand All @@ -91,7 +96,7 @@ exports.config = {
// maxInstances can get overwritten per capability. So if you have an in-house Selenium
// grid with only 5 firefox instances available you can make sure that not more than
// 5 instances get started at a time.
maxInstances: 5,
maxInstances: 1,
//
browserName: 'chrome',
'goog:chromeOptions': {
Expand Down Expand Up @@ -145,7 +150,7 @@ exports.config = {
baseUrl: 'http://localhost:8080',
//
// Default timeout for all waitFor* commands.
waitforTimeout: 10000,
waitforTimeout: 20000,
//
// Default timeout in milliseconds for request
// if browser driver or grid doesn't send response
Expand Down Expand Up @@ -224,7 +229,9 @@ exports.config = {
// <boolean> add cucumber tags to feature or scenario name
tagsInTitle: false,
// <number> timeout for step definitions
timeout: 20000,
timeout: 360000,
// <number> number of times to retry failed scenarios
retry: 2,
},
//
// =====
Expand Down

0 comments on commit 69a64f9

Please sign in to comment.