Skip to content

Conversation

samgst-amazon
Copy link
Contributor

e2e tests for Q dev profile behavior

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@samgst-amazon samgst-amazon requested review from a team as code owners August 16, 2025 02:52
@samgst-amazon
Copy link
Contributor Author

Still need to update CI to use new test users

const pages = await browser.pages()

// Use the last page (most recently active)
const activePage = pages[pages.length - 1]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not found a good way to do this. This is flaky, but iterating through all the pages like the other tests also doesn't work and results in false positives/negatives for what is actually displayed. I have not found a way to get the active browser page from headless puppeteer.

puppeteer/puppeteer#443 (comment)

}

@Test
fun `Test single dev profile user accounts`() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left out @ssologin until CI is configured. Both users are on the same IDC url. How can we select which user each test will use on CI?

Copy link

github-actions bot commented Aug 16, 2025

Qodana Community for JVM

1 new problem were found

Inspection name Severity Problems
Unstable API Usage 🔶 Warning 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@@ -48,6 +48,14 @@
extendsFrom(uiTestImplementation)
}

configurations {

Check warning

Code scanning / QDJVMC

Unstable API Usage Warning

'invoke(org.gradle.api.artifacts.ConfigurationContainer, org.gradle.api.Action)' is marked unstable with @Incubating
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.

1 participant