Skip to content

Commit

Permalink
fix: e2e slashtags test link keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Dec 4, 2024
1 parent b5d6bb3 commit ce2979a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .detoxrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// run iPhone 14 on local machine, iPhone 15 Pro on mac mini
const iOSDevice = process.env.MACMINI ? 'iPhone 15 Pro' : 'iPhone 14';

const reversePorts = [3003, 8080, 8081, 9735, 10009, 28334, 28335, 28336, 30001, 39388, 43782, 60001];

/** @type {Detox.DetoxConfig} */
Expand Down Expand Up @@ -47,7 +44,7 @@ module.exports = {
simulator: {
type: 'ios.simulator',
device: {
type: iOSDevice,
type: 'iPhone 15',
},
},
emulator: {
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/e2e-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ concurrency:
env:
E2E_TESTS: 1 # build without transform-remove-console babel plugin
DEBUG: 'lnurl* lnurl server'
MACMINI: 1 # use iPhone 15 in .detoxrc

jobs:
e2e:
Expand Down
2 changes: 2 additions & 0 deletions e2e/slashtags.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ d('Profile and Contacts', () => {

await element(by.id('LinkLabelInput')).typeText('LINK-LABEL');
await element(by.id('LinkValueInput')).typeText('link-value');
await element(by.id('LinkLabelInput')).tapReturnKey();
await sleep(200); // keyboard animation
await element(by.id('SaveLink')).tap();
await waitFor(element(by.id('SaveLink'))).not.toBeVisible();
await expect(element(by.text('LINK-LABEL'))).toExist();
Expand Down

0 comments on commit ce2979a

Please sign in to comment.