-
Notifications
You must be signed in to change notification settings - Fork 26
refactor onboarding #1301
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
base: develop
Are you sure you want to change the base?
refactor onboarding #1301
Conversation
| tags: | ||
| - '[0-9]+.[0-9]+.[0-9]+*' | ||
| pull_request_target: | ||
| pull_request: |
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.
Lets merge develop into this branch and match that. I don't think this PR should have changes for the github workflows or package-lock.json
| log.info(`Contexts: ${contexts}`); | ||
| await driver.switchContext("WEBVIEW_org.cardanofoundation.idw"); | ||
| await driver.switchContext("WEBVIEW_chrome"); | ||
| // Chỉ switch nếu context tồn tại |
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.
remove
|
|
||
| Then(/^user can see Welcome modal$/, async function() { | ||
| await WelcomeModal.loads(); | ||
| // Chờ trang Profile Setup xuất hiện (không dùng wait cứng) |
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.
remove
| // Chờ trang Profile Setup xuất hiện (không dùng wait cứng) | ||
| const profileTypeTitle = $("p.title"); | ||
| await profileTypeTitle.waitForDisplayed({ timeout: 10000 }); | ||
| await expect(profileTypeTitle).toHaveText("Which type of profile do you want to create?"); |
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.
Do we have a way to import these from the i18n files in case we rename them?
| Then(/^user can see Welcome modal$/, async function() { | ||
| await WelcomeModal.loads(); | ||
| // Chờ trang Profile Setup xuất hiện (không dùng wait cứng) | ||
| const profileTypeTitle = $("p.title"); |
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.
Isn't this the subtitle?
| await MenuSettingsSupportScreen.checkTitle("Onboarding"); | ||
|
|
||
| // The documentation page should load successfully | ||
| // The title might be different than expected, so let's just check that we're on a web page |
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.
Since our application is a WebView, I think we will always be on a webpage so I don't think this is sufficient.
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.
Apparently the plan is for this to link back to the docs again, and not the website. Not sure if this change has been made yet yet on develop.
| await driver.switchContext("WEBVIEW_chrome"); | ||
| // Chỉ switch nếu context tồn tại | ||
| if (contexts.includes("WEBVIEW_org.cardanofoundation.idw")) { | ||
| await driver.switchContext("WEBVIEW_org.cardanofoundation.idw"); |
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.
Why do we need this function to switch contexts? Shouldn't the context switch itself when we click the button to open the onboarding documentation?
Description
Please include a summary of the changes and a brief description about this PR.
Checklist before requesting a review
Issue ticket number and link
Testing & Validation
Design Review