Skip to content

Commit

Permalink
e2e fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Senyoret1 committed Feb 9, 2023
1 parent d455dc6 commit e749f04
Show file tree
Hide file tree
Showing 13 changed files with 513 additions and 3,497 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Gopkg.toml
**/e2e/*
**/node_modules/*
**/dist/*
**/test/*
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
"tsconfig.json"
],
"createDefaultProgram": true
},
Expand Down
3,983 changes: 495 additions & 3,488 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@
"@angular/router": "^15.0.4",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"@wdio/codemod": "^0.12.0",
"bignumber.js": "^7.2.1",
"core-js": "^2.5.4",
"disable-scroll": "^0.4.0",
"jscodeshift": "^0.14.0",
"rxjs": "^6.5.5",
"tslib": "^2.0.0",
"zone.js": "~0.11.4"
Expand All @@ -54,7 +52,7 @@
"@wdio/jasmine-framework": "^8.3.3",
"@wdio/local-runner": "^8.3.3",
"@wdio/spec-reporter": "^8.3.0",
"chromedriver": "^109.0.0",
"chromedriver": "^106.0.0",
"eslint": "^8.28.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jsdoc": "37.9.4",
Expand Down
1 change: 1 addition & 0 deletions test/specs/address-detail/address-detail.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('skycoin-explorer Address Page', () => {
address = for180BlockchainTesting ? '2A2YC8kxWnUDbscpzZ6UPfNAmx5ddKBeYNs' : '24ooGeabUGQLnJmoyviqA8h2y7Cgz2CY4x7';

await generalFunctions.navigateTo('/app/address/' + address);
await generalFunctions.waitUntilNoSpinners();

expect(await generalFunctions.getPageTitle()).toBe(address);
});
Expand Down
2 changes: 2 additions & 0 deletions test/specs/block-details/block-details.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ describe('skycoin-explorer Block Details Page', () => {

it('should display the title', async () => {
await generalFunctions.navigateTo('/app/block/5');
await generalFunctions.waitUntilNoSpinners();

expect(await generalFunctions.getPageTitle()).toEqual('Block Details');
});

Expand Down
2 changes: 2 additions & 0 deletions test/specs/blocks/blocks.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ describe('skycoin-explorer Blocks Page', () => {

it('should display the title for big screens', async () => {
await generalFunctions.navigateTo('/');
await generalFunctions.waitUntilNoSpinners();

expect(await page.getPageTitle(0)).toBe('Blocks');
});

Expand Down
2 changes: 2 additions & 0 deletions test/specs/richlist/richlist.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ describe('skycoin-explorer Rich List Page', () => {

it('should display the title', async () => {
await generalFunctions.navigateTo('/app/richlist');
await generalFunctions.waitUntilNoSpinners();

expect(await page.getPageTitle()).toEqual('Rich List');
});

Expand Down
2 changes: 2 additions & 0 deletions test/specs/transaction-detail/transaction-detail.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ describe('skycoin-explorer Transaction Page', () => {

it('should display the title', async () => {
await generalFunctions.navigateTo('/app/transaction/0579e7727627cd9815a8a8b5e1df86124f45a4132cc0dbd00d2f110e4f409b69');
await generalFunctions.waitUntilNoSpinners();

expect(await generalFunctions.getPageTitle()).toBe('Transaction');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('skycoin-explorer Unconfirmed Transactions Page', () => {

it('should display Unconfirmed Transactions text', async () => {
await generalFunctions.navigateTo('/app/unconfirmedtransactions');
await generalFunctions.waitUntilNoSpinners();

for180BlockchainTesting = !((await browser.getUrl()).includes('localhost:4200'));

Expand All @@ -23,7 +24,7 @@ describe('skycoin-explorer Unconfirmed Transactions Page', () => {

it('should show the correct number of transactions', async () => {
if (for180BlockchainTesting) {
expect(await page.getNumberOfTransactions()).toBe(for180BlockchainTesting);
expect(await page.getNumberOfTransactions()).toBe(1);
}
});

Expand Down
1 change: 1 addition & 0 deletions test/specs/unspent-outputs/unspent-outputs.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('skycoin-explorer Unspent Outputs Page', () => {
address = for180BlockchainTesting ? '2A2YC8kxWnUDbscpzZ6UPfNAmx5ddKBeYNs' : '24ooGeabUGQLnJmoyviqA8h2y7Cgz2CY4x7';

await generalFunctions.navigateTo('/app/unspent/' + address);
await generalFunctions.waitUntilNoSpinners();

expect(await generalFunctions.getPageTitle()).toBe('Unspent Outputs');
});
Expand Down
4 changes: 2 additions & 2 deletions wdio-blockchain-180.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ exports.config = {
//
browserName: 'chrome',
"goog:chromeOptions": {
args: ['window-size=1920,1080']
args: ['--no-sandbox', '--headless', '--disable-gpu', 'window-size=1920,1080']
},
acceptInsecureCerts: true
// If outputDir is provided WebdriverIO can capture driver session logs
Expand Down Expand Up @@ -112,7 +112,7 @@ exports.config = {
// with `/`, the base url gets prepended, not including the path portion of your baseUrl.
// If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url
// gets prepended directly.
baseUrl: 'http://127.0.0.1:8001',
baseUrl: 'http://127.0.0.1:8001/',
//
// Default timeout for all waitFor* commands.
waitforTimeout: 10000,
Expand Down
2 changes: 1 addition & 1 deletion wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ exports.config = {
//
browserName: 'chrome',
"goog:chromeOptions": {
args: ['window-size=1920,1080']
args: ['--no-sandbox', '--headless', '--disable-gpu', 'window-size=1920,1080']
},
acceptInsecureCerts: true
// If outputDir is provided WebdriverIO can capture driver session logs
Expand Down

0 comments on commit e749f04

Please sign in to comment.