-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e: reintroduce e2e test for providers locally #1706
Conversation
this will need a big rebase after #1675 :/ |
The main change in the new wdio is that you'll need lots of browser.someMethod('selector') now needs to be: const el = await browser.$('selector')
await el.someMethod() |
c69e4ce
to
e991169
Compare
@goto-bus-stop ready for a review now 👍 |
@@ -8,7 +8,7 @@ const Dropbox = require('@uppy/dropbox') | |||
const Tus = require('@uppy/tus') | |||
|
|||
const isOnTravis = !!(process.env.TRAVIS && process.env.CI) | |||
const companionUrl = isOnTravis ? 'http://companion.test:3030' : 'http://localhost:3030' | |||
const companionUrl = isOnTravis ? 'http://companion.test:3030' : 'http://localhost:3020' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdio runs Companion on :3030. can't we use that here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I resorted to 3020 for the following reasons:
- Oauth Redirect URI for the Providers in dev env is currently set to allow only http://localhost:3020
- I thought since this is meant to run locally there's no need to duplicate the usage of secrets nor is there a need to bother running a different companion instance.
I think the companion at 3030 serves for url-plugin on travis which does not need Oauth dance, also it made sense to have it because the other providers were intended to run on travis, but unfortunately, that's not the case anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@goto-bus-stop any reservations on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still like it if we could somehow use the wdio-run companion in the future but this LGTM now 👍
No description provided.