Skip to content

Commit

Permalink
Increased timeout as per staging environment execution (#230)
Browse files Browse the repository at this point in the history
* Increased timeout as per staging environment execution - failures due to slowness
* Apollo CI / Lint (pull_request) and staging timeout errors
Signed-off-by: Ketul Shah <[email protected]>
  • Loading branch information
ketulsha authored Jun 16, 2022
1 parent de53e5a commit 4065345
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/apollo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm ci
- run: npm ci --legacy-peer-deps
- run: npm run lint

build-code:
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm ci
- run: npm ci --legacy-peer-deps
- run: npm run build

unit-tests:
Expand All @@ -41,5 +41,5 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm ci
- run: npm ci --legacy-peer-deps
- run: npm test
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Feature: 1.x Smart Contract flow
And I am logged in
And I am ready to get started
And I am on the 'smart_contracts' page
Then wait "5" seconds
And I clicked the button with id 'overflow-installed-fabcar_2.1.1'
And I clicked the button with id 'instantiate_modal'
And I selected 'channel1' value from the 'div#chaincodeModal-channel-selectedChannel' dropdown
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo/test/functional/helpers/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function clickButton(property, value) {
throw new Error('Property not supported');
}

await browser.wait(ExpectedConditions.elementToBeClickable(button), 60000);
await browser.wait(ExpectedConditions.elementToBeClickable(button), 2 * 60 * 1000);
await button.click();
}

Expand Down
6 changes: 3 additions & 3 deletions packages/apollo/test/functional/steps/chaincode.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ Then(/^the chaincode with name (?:'|")(.*?)(?:'|") should have been created in (
let tileTitleEl;
try {
tileTitleEl = element(by.cssContainingText('.ibp-tile-content-title', chaincodeName));
await browser.wait(ExpectedConditions.elementToBeClickable(tileTitleEl), 3 * 60 * 1000);
await browser.wait(ExpectedConditions.elementToBeClickable(tileTitleEl), 6 * 60 * 1000);
} catch (e) {
await browser.sleep(60 * 1000);
await browser.refresh();
tileTitleEl = element(by.cssContainingText('.ibp-tile-content-title', chaincodeName));
await browser.wait(ExpectedConditions.elementToBeClickable(tileTitleEl), 3 * 60 * 1000);
await browser.wait(ExpectedConditions.elementToBeClickable(tileTitleEl), 6 * 60 * 1000);
}
let tile = await tileTitleEl.element(by.xpath('../..'));
let stateEl = await tile.element(by.css('.ibp-channel-chaincode-status'));
browser.wait(ExpectedConditions.textToBePresentInElement(stateEl, state), 3 * 60 * 1000);
browser.wait(ExpectedConditions.textToBePresentInElement(stateEl, state), 6 * 60 * 1000);
let stateText = await stateEl.getText();
stateText.should.equal(state);
});
4 changes: 2 additions & 2 deletions packages/apollo/test/functional/steps/notifcation.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Then(/^I should see a success toast which says (?:'|")(.*?)(?:'|")$/, async expe
let successElement;
try {
successElement = element(by.className('bx--toast-notification__title'));
await browser.wait(ExpectedConditions.visibilityOf(successElement), 60000);
await browser.wait(ExpectedConditions.visibilityOf(successElement), 5 * 60 * 1000);
let successText = await successElement.getText();
successText.should.contain(expectedMessage);
} catch (err) {
successElement = element(by.className('bx--toast-notification__subtitle'));
await browser.wait(ExpectedConditions.visibilityOf(successElement), 60000);
await browser.wait(ExpectedConditions.visibilityOf(successElement), 5 * 60 * 1000);
let successText = await successElement.getText();
successText.should.contain(expectedMessage);
}
Expand Down

0 comments on commit 4065345

Please sign in to comment.