Skip to content

Conversation

@jacklesotatek
Copy link
Collaborator

@jacklesotatek jacklesotatek commented Aug 7, 2025

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

  • This PR has been tested/validated in iOS, Android and browser.
  • Added new unit tests, if relevant.

Design Review

  • In case this PR contains changes to the UI, add some screenshots and/or videos to show the changes on relevant devices.

tags:
- '[0-9]+.[0-9]+.[0-9]+*'
pull_request_target:
pull_request:
Copy link
Collaborator

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
Copy link
Collaborator

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)
Copy link
Collaborator

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?");
Copy link
Collaborator

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");
Copy link
Collaborator

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
Copy link
Collaborator

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.

Copy link
Collaborator

@iFergal iFergal Oct 29, 2025

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");
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants