Skip to content

Commit

Permalink
Change timeout and get strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Dec 13, 2016
1 parent 11078c7 commit 274ced8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/support/spectron-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const TEST_ID = 'data-test-id';
/**
* The default timeout for selectors.
*/
const TIMEOUT = 10000;
const TIMEOUT = 15000;

/**
* A long running operation timeout.
Expand Down Expand Up @@ -177,7 +177,7 @@ function addWaitCommands(client) {
return this.getIndexNames().then(function(names) {
return names.includes(name);
});
});
}, TIMEOUT);
});

/**
Expand Down Expand Up @@ -702,7 +702,7 @@ function addGetCommands(client) {
client.addCommand('getIndexNames', function() {
const base = selector('indexes-table');
const names = `${base} td.name-column .index-definition .name`;
return this.waitForVisible(base).getText(names, TIMEOUT);
return this.waitForVisible(base, TIMEOUT).getText(names);
});

/**
Expand All @@ -713,7 +713,7 @@ function addGetCommands(client) {
client.addCommand('getIndexTypes', function() {
const base = selector('indexes-table');
const types = `${base} td.type-column .property`;
return this.waitForVisible(base).getText(types, TIMEOUT);
return this.waitForVisible(base, TIMEOUT).getText(types);
});

/**
Expand All @@ -724,7 +724,7 @@ function addGetCommands(client) {
client.addCommand('getIndexSizes', function() {
const base = selector('indexes-table');
const sizes = `${base} td.size-column .quantity`;
return this.waitForVisible(base).getText(sizes, TIMEOUT);
return this.waitForVisible(base, TIMEOUT).getText(sizes);
});

/**
Expand All @@ -735,7 +735,7 @@ function addGetCommands(client) {
client.addCommand('getIndexUsages', function() {
const base = selector('indexes-table');
const usages = `${base} td.usage-column .usage .quantity`;
return this.waitForVisible(base).getText(usages, TIMEOUT);
return this.waitForVisible(base, TIMEOUT).getText(usages);
});

/**
Expand All @@ -746,7 +746,7 @@ function addGetCommands(client) {
client.addCommand('getIndexProperties', function() {
const base = selector('indexes-table');
const props = `${base} td.property-column .properties .property`;
return this.waitForVisible(base).getText(props, TIMEOUT);
return this.waitForVisible(base, TIMEOUT).getText(props);
});
}

Expand Down

0 comments on commit 274ced8

Please sign in to comment.