Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit fa78928

Browse files
nklincolnSimon Stone
authored andcommitted
make it fail on publish error and add required modules for verdaccio (#3552)
Signed-off-by: Nick Lincoln <nkl199@yahoo.co.uk>
1 parent 28f1b14 commit fa78928

52 files changed

Lines changed: 793 additions & 283 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
coverage
22
dist
33
node_modules
4-
e2e/data/files
4+
e2e/data

packages/composer-playground/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@ npm-debug.log
6363

6464
# Usabilla code template
6565
usabilla.html.template
66+
67+
#pm2 files
68+
*.pm2

packages/composer-playground/e2e/component/add-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ExpectedConditions } from 'protractor';
1616

1717
import { OperationsHelper } from '../utils/operations-helper';
1818
import { dragDropFile } from '../utils/fileUtils';
19-
import { Constants } from '../utils/constants';
19+
import { Constants } from '../constants';
2020

2121
export class AddFile {
2222

packages/composer-playground/e2e/component/alert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { browser, element, by } from 'protractor';
1818
import { ExpectedConditions } from 'protractor';
19-
import { Constants } from '../utils/constants';
19+
import { Constants } from '../constants';
2020

2121
export class BusyAlert {
2222

packages/composer-playground/e2e/component/deploy.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ExpectedConditions } from 'protractor';
1616

1717
import { OperationsHelper } from '../utils/operations-helper';
1818
import { dragDropFile } from '../utils/fileUtils';
19-
import { Constants } from '../utils/constants';
19+
import { Constants } from '../constants';
2020

2121
let baseTiles = ['basic-sample-network', 'empty-business-network', 'drag-drop'];
2222

@@ -33,10 +33,7 @@ export class Deploy {
3333

3434
// Wait for disappear
3535
static waitToDisappear(fabric?) {
36-
let wait = Constants.shortWait;
37-
if (fabric) {
38-
wait = null;
39-
}
36+
let wait = fabric ? Constants.vlongwait : Constants.shortWait;
4037
return browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.choose-network'))), wait);
4138
}
4239

@@ -86,7 +83,7 @@ export class Deploy {
8683
})
8784
.then(() => {
8885
return userSecret.sendKeys(secret);
89-
})
86+
});
9087
};
9188

9289
static retrieveBaseTileOptions() {

packages/composer-playground/e2e/component/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import { browser, element, by } from 'protractor';
1515
import { ExpectedConditions } from 'protractor';
1616
import { OperationsHelper } from '../utils/operations-helper';
17-
import { Constants } from '../utils/constants';
17+
import { Constants } from '../constants';
1818
import { EditorFile } from './editor-file';
1919

2020
let scrollMe = (target) => {

packages/composer-playground/e2e/component/error-alert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ExpectedConditions } from 'protractor';
1616

1717
import { OperationsHelper } from '../utils/operations-helper';
1818
import { dragDropFile } from '../utils/fileUtils';
19-
import { Constants } from '../utils/constants';
19+
import { Constants } from '../constants';
2020

2121
export class ErrorAlert {
2222

packages/composer-playground/e2e/component/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { browser, element, by } from 'protractor';
1515
import { ExpectedConditions } from 'protractor';
1616
import { dragDropFile } from '../utils/fileUtils';
1717
import { OperationsHelper } from '../utils/operations-helper';
18-
import { Constants } from '../utils/constants';
18+
import { Constants } from '../constants';
1919

2020
// Initialise known tile orderings
2121
let baseTiles = ['basic-sample-network', 'empty-business-network', 'drag-drop'];

packages/composer-playground/e2e/component/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { browser, element, by, ElementFinder, WebElement } from 'protractor';
1515
import { dragDropFile } from '../utils/fileUtils';
1616
import { ExpectedConditions } from 'protractor';
1717

18-
import { Constants } from '../utils/constants';
18+
import { Constants } from '../constants';
1919
import { OperationsHelper } from '../utils/operations-helper';
2020
import { BusyAlert } from './alert';
2121
import * as fs from 'fs';
@@ -48,7 +48,7 @@ export class Login {
4848
});
4949
}
5050

51-
// Connect to Playground via named ID Card under named connectino profile
51+
// Connect to Playground via named ID Card under named connection profile
5252
static connectViaIdCard(profile: string, networkName: string) {
5353
return browser.wait(ExpectedConditions.visibilityOf(element(by.css('.connection-profile'))), Constants.longWait)
5454
.then(() => {

packages/composer-playground/e2e/component/replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import { browser, element, by } from 'protractor';
1515
import { ExpectedConditions } from 'protractor';
1616
import { OperationsHelper } from '../utils/operations-helper';
17-
import { Constants } from '../utils/constants';
17+
import { Constants } from '../constants';
1818

1919
export class Replace {
2020

0 commit comments

Comments
 (0)