Skip to content

Commit cef819f

Browse files
committed
test: join e2e LN channels tests
1 parent 4f95c12 commit cef819f

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

e2e/channels.e2e.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('LN Channel Onboarding', () => {
5959
// - can change channel duration
6060
// - shows disabled receiving cards when spending amount is higher
6161

62-
it('Can buy a channel via the QuickSetup', async () => {
62+
it('Can buy a channel via the QuickSetup and CustomSetup', async () => {
6363
if (checkComplete('channels-1')) {
6464
return;
6565
}
@@ -136,14 +136,8 @@ describe('LN Channel Onboarding', () => {
136136
element(by.id('Suggestion-lightningSettingUp')),
137137
).toBeVisible();
138138

139-
markComplete('channels-1');
140-
});
141-
142-
it('Can buy a channel via the CustomSetup', async () => {
143-
if (checkComplete('channels-2')) {
144-
return;
145-
}
146-
139+
// CustomSetup
140+
await launchAndWait();
147141
await element(by.id('Suggestion-lightningSettingUp')).tap();
148142
await element(by.id('NavigationAction')).tap();
149143

@@ -159,9 +153,9 @@ describe('LN Channel Onboarding', () => {
159153
// Receive Amount
160154
await element(by.id('CustomSetupContinue')).tap();
161155
await sleep(1000); // animation
162-
const button = element(by.id('Barrel-medium'));
163-
const buttonEnabled = await isButtonEnabled(button);
164-
jestExpect(buttonEnabled).toBe(false);
156+
const button2 = element(by.id('Barrel-medium'));
157+
const buttonEnabled2 = await isButtonEnabled(button2);
158+
jestExpect(buttonEnabled2).toBe(false);
165159

166160
// go to confirmation screen
167161
await element(by.id('CustomSetupContinue')).tap();
@@ -189,7 +183,7 @@ describe('LN Channel Onboarding', () => {
189183
element(by.id('Suggestion-lightningSettingUp')),
190184
).toBeVisible();
191185

192-
markComplete('channels-2');
186+
markComplete('channels-1');
193187
});
194188
});
195189
});

0 commit comments

Comments
 (0)