Skip to content
Merged
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
package-lock.json
.idea
9 changes: 3 additions & 6 deletions conf/multiple.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports.config = {
user: process.env.LT_USERNAME || "YOUR LAMBDATEST USERNAME",
key: process.env.LT_ACCESS_KEY || "YOUR LAMBDATEST ACCESS KEY",
user: process.env.LT_USERNAME || "YOUR LAMBDATEST USERNAME",
key: process.env.LT_ACCESS_KEY || "YOUR LAMBDATEST ACCESS KEY",

updateJob: false,
specs: ["../tests/specs/multiple_test.js"],
Expand All @@ -17,10 +17,7 @@ exports.config = {
video: true,
console: false,
network: false,
accessibility : false, // Enable accessibility testing
accessibility.wcagVersion: 'wcag21a', // Specify WCAG version (e.g., WCAG 2.1 Level A)
accessibility.bestPractice: false, // Exclude best practice issues from results
accessibility.needsReview: false // Include issues that need review
accessibility: false,
},
],

Expand Down
9 changes: 3 additions & 6 deletions conf/parallel.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports.config = {
user: process.env.LT_USERNAME || "YOUR LAMBDATEST USERNAME",
key: process.env.LT_ACCESS_KEY || "YOUR LAMBDATEST ACCESS KEY",
user: process.env.LT_USERNAME || "YOUR LAMBDATEST USERNAME",
key: process.env.LT_ACCESS_KEY || "YOUR LAMBDATEST ACCESS KEY",

updateJob: false,
specs: ["../tests/specs/single_test.js"],
Expand All @@ -14,10 +14,7 @@ exports.config = {
video: true,
console: false,
network: false,
accessibility : false, // Enable accessibility testing
accessibility.wcagVersion: 'wcag21a', // Specify WCAG version (e.g., WCAG 2.1 Level A)
accessibility.bestPractice: false, // Exclude best practice issues from results
accessibility.needsReview: false // Include issues that need review
accessibility: false,
},

capabilities: [
Expand Down
70 changes: 33 additions & 37 deletions conf/single.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,39 @@ exports.config = {
user: process.env.LT_USERNAME || "YOUR LAMBDATEST USERNAME",
key: process.env.LT_ACCESS_KEY || "YOUR LAMBDATEST ACCESS KEY",

updateJob: false,
specs: ["../tests/specs/single_test.js"],
exclude: [],
updateJob: false,
specs: ["../tests/specs/single_test.js"],
exclude: [],

capabilities: [
{
browserName: "chrome",
version: "latest",
platform: "WIN10",
name: "webdriverIO-single_test",
build: "webdriverIO-lambdatest",
visual: false,
video: true,
console: false,
network: false,
accessibility : false, // Enable accessibility testing
accessibility.wcagVersion: 'wcag21a', // Specify WCAG version (e.g., WCAG 2.1 Level A)
accessibility.bestPractice: false, // Exclude best practice issues from results
accessibility.needsReview: false // Include issues that need review
capabilities: [
{
browserName: "chrome",
browserVersion: "latest",
platformName: "Windows 10",
name: "webdriverIO-single_test",
build: "webdriverIO-lambdatest",
visual: false,
video: true,
console: false,
network: false,
accessibility: false,
},
],

},
],

logLevel: "info",
coloredLogs: true,
screenshotPath: "./errorShots/",
baseUrl: "",
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
path: "/wd/hub",
hostname: "hub.lambdatest.com",
port: 80,
logLevel: "info",
coloredLogs: true,
screenshotPath: "./errorShots/",
baseUrl: "",
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
path: "/wd/hub",
hostname: "hub.lambdatest.com",
port: 80,

framework: "mocha",
mochaOpts: {
ui: "bdd",
timeout: 20000,
},
};
framework: "mocha",
mochaOpts: {
ui: "bdd",
timeout: 20000,
},
};
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
"bugs": {},
"homepage": "https://github.com/Lambdatest/webdriverio-Lambdatest#readme",
"dependencies": {
"@wdio/cli": "^8.27.1",
"@wdio/local-runner": "^8.27.0",
"@wdio/mocha-framework": "^8.27.0"
"@wdio/cli": "^9.19.2",
"@wdio/local-runner": "^9.20.0",
"@wdio/mocha-framework": "^9.20.0",
"selenium-webdriver": "^4.38.0"
}
}
2 changes: 1 addition & 1 deletion tests/specs/local_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ describe('Lambdatest Local Testing', function() {
const input = await browser.$('*[id="sampletodotext"]');
await input.setValue('Lambdatest\n');
const title = await browser.getTitle();
assert(title.match(/Sample page - lambdatest.com/i));
assert(title.match(/Modern To-Do App | LambdaTest/i));
});
});
2 changes: 1 addition & 1 deletion tests/specs/multiple/test_01.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ describe('Lambdatest Demo Test', function() {
const input = await browser.$('*[id="sampletodotext"]');
await input.setValue('Lambdatest\n');
const title = await browser.getTitle();
assert(title.match(/Sample page - lambdatest.com/i));
assert(title.match(/Modern To-Do App | LambdaTest/i));
});
});
2 changes: 1 addition & 1 deletion tests/specs/multiple/test_02.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ describe('Lambdatest Demo Test', function() {
const input = await browser.$('*[id="sampletodotext"]');
await input.setValue('Lambdatest\n');
const title = await browser.getTitle();
assert(title.match(/Sample page - lambdatest.com/i));
assert(title.match(/Modern To-Do App | LambdaTest/i));
});
});
2 changes: 1 addition & 1 deletion tests/specs/multiple/test_03.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ describe('Lambdatest Demo Test', function() {
const input = await browser.$('*[id="sampletodotext"]');
await input.setValue('Lambdatest\n');
const title = await browser.getTitle();
assert(title.match(/Sample page - lambdatest.com/i));
assert(title.match(/Modern To-Do App | LambdaTest/i));
});
});
2 changes: 1 addition & 1 deletion tests/specs/single_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ describe('Lambdatest Demo Test', function() {
const input = await browser.$('*[id="sampletodotext"]');
await input.setValue('Lambdatest\n');
const title = await browser.getTitle();
assert(title.match(/Sample page - lambdatest.com/i));
assert(title.match(/Modern To-Do App | LambdaTest/i));
});
});