Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit d83ea61

Browse files
committed
Adjust E2E to support PR #30
1 parent b54934a commit d83ea61

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

common/project.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
module.exports = global.Project = {
2-
api: 'https://api-dev.bullet-train.io/api/v1/',
2+
api: 'https://api.bullet-train.io/api/v1/',
33
bulletTrainClientAPI: 'https://api.bullet-train.io/api/v1/',
4-
bulletTrain: '8KzETdDeMY7xkqkSkY3Gsg', // This is our Bullet Train API key - Bullet Train runs on Bullet Train!
5-
debug: false,
6-
env: 'dev', // This is used for Sentry tracking
7-
ga: 'UA-120237963-3', // This is our Google Analytics key
4+
bulletTrain: '4vfqhypYjcPoGGu8ByrBaj', // This is our Bullet Train API key - Bullet Train runs on Bullet Train!
5+
env: 'prod', // This is used for Sentry tracking
6+
ga: 'UA-120237963-1', // This is our Google Analytics key
7+
sentry: 'https://[email protected]/1320942',
88
demoAccount: {
99
1010
password: 'demo_account',
1111
},
1212
chargebee: {
13-
site: 'bullettrain-test',
13+
site: 'bullettrain',
1414
},
1515
crispChat: '8857f89e-0eb5-4263-ab49-a293872b6c19',
16-
mixpanel: '6143f9ceefb1c67640a0771345e8c095',
16+
mixpanel: '9448f5be8a5555c380e5dd4b7ac2c345',
17+
assetUrl: 'https://cdn.bullet-train.io', // Location of the static files from build/, should contain a directory called static/
1718
};

tests/helpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const testHelpers = {
2424
},
2525
waitLoggedIn: async (browser) => {
2626
browser.waitForElementNotPresent('#login-btn');
27+
browser.waitForElementNotPresent('.loader');
2728
},
2829
setSegmentRule(browser, ruleIndex, orIndex, name, operator, value) {
2930
browser.waitAndSet(testHelpers.byTestID(`rule-${ruleIndex}-property-${orIndex}`), name);

web/components/PanelSearch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ const PanelSearch = class extends Component {
149149
>
150150
{({ index, style }) => (
151151
<div style={style}>
152-
{this.props.renderRow(filteredItems[index],index)}
152+
<div style={{ height: (this.props.itemHeight || 60) }}>
153+
{this.props.renderRow(filteredItems[index], index)}
154+
</div>
153155
</div>
154156
)}
155157
</List>

web/components/pages/UserPage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const UserPage = class extends Component {
156156
<PanelSearch
157157
id="user-features-list"
158158
className="no-pad"
159-
itemHeight={65}
159+
itemHeight={70}
160160
icon="ion-ios-rocket"
161161
title="Features"
162162
items={projectFlags}
@@ -384,6 +384,7 @@ const UserPage = class extends Component {
384384
className="no-pad"
385385
icon="ion-ios-globe"
386386
title="Segments"
387+
itemHeight={70}
387388
items={segments || []}
388389
renderRow={({ name, id, enabled, created_date, type, description }, i) => (
389390
<Row

web/project/project-components.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ window.Loader = class extends PureComponent {
6464
render() {
6565
return (
6666
<svg
67+
className="loader"
6768
version="1.1" id="loader-1" x="0px"
6869
y="0px"
6970
width="40px" height="40px" viewBox="0 0 50 50"

0 commit comments

Comments
 (0)