Skip to content

Commit

Permalink
e2e test fixes, remove dependencies provided by react-native
Browse files Browse the repository at this point in the history
update to macOS 10.14
list available iOS simulators in display-tools
skip war packaging of backend
  • Loading branch information
ruddell committed Sep 29, 2019
1 parent aad3de6 commit c18179e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jobs:
- job: Test
pool:
# note: both ios and android emulator is only available on mac-os on azure pipelines
vmImage: 'macOS-10.13'
vmImage: 'macOS-10.14'
variables:
SCRIPT_DIR: $BUILD_REPOSITORY_LOCALPATH/test/scripts
JHI_AUTH_TYPE: jwt
Expand Down Expand Up @@ -51,12 +51,12 @@ jobs:
displayName: 'TOOLS: update NPM'
- script: $(SCRIPT_DIR)/install-node-dependencies.sh
displayName: 'TOOLS: install node dependencies'
- script: $(SCRIPT_DIR)/install-detox.sh
displayName: 'TOOLS: installing Detox and its dependencies'
- script: $(SCRIPT_DIR)/display-tools.sh
displayName: 'TOOLS: display tools'
- script: $(SCRIPT_DIR)/copy-jdl-file.sh
displayName: 'SETUP: copy the JDL file for the backend and app'
- script: $(SCRIPT_DIR)/install-detox.sh
displayName: 'TOOLS: installing detox CLI '
- script: npm ci && npm link
displayName: 'TOOLS: npm install and link in ignite-jhipster'
- script: $(SCRIPT_DIR)/generate-jhipster-backend.sh
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/app/modules/login/login.sagas.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function * login (api, { username, password }) {
<%_ } _%>
yield put({ type: 'RELOGIN_OK' })
} else {
yield put(LoginActions.loginFailure((response.data && response.data.detail) || 'Bad Credentials'))
yield put(LoginActions.loginFailure((response.data && response.data.detail) || 'Bad credentials'))
}
}
<%_ } _%>
Expand Down
4 changes: 0 additions & 4 deletions boilerplate/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@
"@storybook/addons": "5.2.1",
"@storybook/react-native": "5.2.1",
"@storybook/theming": "5.2.1",
"@babel/core": "7.6.2",
"babel-core": "7.0.0-bridge.0",
"babel-preset-env": "1.7.0",
"buffer": "5.4.3",
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "1.14.0",
"ignite-jhipster": "<%= props.packageVersion %>",
"jest": "24.9.0",
"@react-native-community/eslint-config": "0.0.5",
<%_ if (!props.skipCommitHook) { _%>
"lint-staged": "9.3.0",
Expand All @@ -73,7 +70,6 @@
<%_ } _%>
"mockery": "2.1.0",
"react-dom": "16.8.6",
"react-test-renderer": "16.8.6",
"reactotron-react-native": "4.0.0",
"reactotron-redux": "3.1.2",
"reactotron-redux-saga": "4.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ test('login failure path', () => {
// Attempt to login and fail
expect(step(response)).toEqual(call(FixtureAPI.login, authObj))
// Send the error
expect(step(response)).toEqual(put(LoginActions.loginFailure('Bad Credentials')))
expect(step(response)).toEqual(put(LoginActions.loginFailure('Bad credentials')))
<%_ } _%>
})
<%_ if (props.authType === 'jwt' || props.authType === 'oauth2') { _%>
Expand Down
1 change: 1 addition & 0 deletions test/scripts/display-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ npm -v
#docker-compose version
pwd
ignite doctor
applesimutils --list
env
3 changes: 2 additions & 1 deletion test/scripts/package-jhipster-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ ls -al
git status

# package the app into a WAR
./mvnw clean package -Pprod -DskipTests -ntp
# this is currently unused, todo: test with backend in prod mode
# ./mvnw clean package -Pprod -DskipTests -ntp

0 comments on commit c18179e

Please sign in to comment.