Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
remove xui browser warning checks for test stability (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
banderous committed Mar 14, 2021
1 parent d4c017b commit 6162236
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
9 changes: 2 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/java"
directory: "/java/backend/"
schedule:
interval: "daily"
open-pull-requests-limit: 20
open-pull-requests-limit: 50

- package-ecosystem: "npm"
directory: "/angular"
schedule:
interval: "daily"
open-pull-requests-limit: 20
9 changes: 2 additions & 7 deletions functionalTest/xui-functional-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ describe('xui end to end tests', function() {
browser.get('http://xui-manage-cases:3000');
browser.wait(protractor.ExpectedConditions.presenceOf(
$('#wb-jurisdiction')), 10000);
browser.wait(protractor.ExpectedConditions.elementToBeClickable(
element(by.xpath('//button[contains(text(), "Apply")]'))), 10000);
element(by.xpath('//button[contains(text(), "Apply")]')).click();
browser.wait(protractor.ExpectedConditions.presenceOf(
element(by.xpath('//a[@href="/cases/case-details/2542345663454321"]'))), 10000);
Expand All @@ -23,11 +25,4 @@ describe('xui end to end tests', function() {
element(by.xpath('//div[contains(text(), "Parties")]'))), 10000);
});

afterEach(async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(jasmine.objectContaining({
level: logging.Level.SEVERE,
} as logging.Entry));
});
});
2 changes: 1 addition & 1 deletion runLocal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export NG_COMMAND='ng serve --host 0.0.0.0 --configuration local --proxy-config
docker-compose -p dev -f docker-compose.yml -f docker-compose.dev.yml up -d -V --build db xui-manage-cases

./functionalTest/wait-for-http-200.sh localhost:5000/health
curl -X POST "http://localhost:5000/testing-support/accounts" -H "accept: */*" -H "Content-Type: application/json" -H "X-XSRF-TOKEN: GYGVfWbs-mg4fPyq4PAJqpJ1YDRMViRd3Sxc" -d "{ \"email\": \"super@gmail.com\", \"forename\": \"John\", \"password\": \"string\", \"roles\": [ \"caseworker\" ], \"surname\": \"Smith\"}"
curl -X POST "http://localhost:5000/testing-support/accounts" -H "accept: */*" -H "Content-Type: application/json" -H "X-XSRF-TOKEN: GYGVfWbs-mg4fPyq4PAJqpJ1YDRMViRd3Sxc" -d "{ \"email\": \"super@gmail.com\", \"forename\": \"John\", \"password\": \"string\", \"roles\": [ { \"code\" : \"caseworker\"} ], \"surname\": \"Smith\"}"

# Backend toggleable
if [ "$#" -ne 1 ]; then
Expand Down

0 comments on commit 6162236

Please sign in to comment.