Skip to content

Commit ac35916

Browse files
committed
fix: timeout issues resolved
1 parent 5416579 commit ac35916

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/__e2e__/page-objects/form.page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class FormPage extends Page {
284284
if (tabName !== 'false') {
285285
super.open(formPage);
286286
this.currentTab = tabName;
287-
return $(
287+
return $(
288288
`//button[@role="tab"][span[contains(text(), "${tabName}")]]`
289289
).click();
290290
}

src/__e2e__/page-objects/page.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module.exports = class Page {
99
* @param path path of the sub page (e.g. /path/to/page.html)
1010
*/
1111
open(path) {
12-
browser.url(`${process.env.VERCEL_URL || 'https://react-jsonschema-form-material-ui-22ntiabxb-github56.vercel.app'}/#${path}`);
12+
browser.url(`${process.env.VERCEL_URL || 'http://localhost:3005'}/#${path}`);
13+
$('//button[span[contains(text(), "Submit")]]').waitForClickable({ timeout: 10000 });
1314
return $('//button[@aria-label="full-screen-code"]').click();
1415
}
1516
};

wdio.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.config = {
2424
// NPM script (see https://docs.npmjs.com/cli/run-script) then the current working
2525
// directory is where your package.json resides, so `wdio` will be called from there.
2626
//
27-
specs: ['./src/demo/examples/**/simple-object.feature'],
27+
specs: ['./src/demo/examples/**/*.feature'],
2828
// Patterns to exclude.
2929
exclude: [
3030
// 'path/to/excluded/files'

0 commit comments

Comments
 (0)