-
-
Notifications
You must be signed in to change notification settings - Fork 7
Fix unassigned variable #52
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
Merged
+5
−5
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
3a60fa2
Added Database checks to the onboarding flow
O-Bots ee0c4a5
Added compatibility page setup
O-Bots a7bbe2d
Finished up the onboarding flow suite
O-Bots dce1993
.
O-Bots 0b05110
Fix: Merge conflict
O-Bots c04e29e
.
O-Bots 932cb34
Fix: Added fix for None discriptive error issue #36
O-Bots 6d976b1
Linting and Prettier
O-Bots 77ab518
Minor cleaning
MartinBraquet a862dfe
Organizing helper func
O-Bots aba6d55
Added Google account to the Onboarding flow
O-Bots ec39152
Added account cleanup for google accounts
O-Bots 85ccdfd
Started work on Sign-in tests
O-Bots 04c18ae
Linting and Prettier
O-Bots d38f939
Added checks to the deleteUser func to check if the accout exists
O-Bots 3f47d52
Linting and Prettier
O-Bots 37d1f31
Formatting update, fixed homePage locator for signin
O-Bots 9cbf87c
.
O-Bots 6529a88
.
O-Bots 316e1f9
.
O-Bots 89d392f
Coderabbitai fix's
O-Bots 14f32e6
Fix
MartinBraquet 8329ed0
Improve test utilities and stabilize onboarding flow tests
MartinBraquet 576d4c0
Changes requested
O-Bots a0e4794
Changed POM/Fixture structure to use an app class to instantiate the …
O-Bots 35f3e2a
Apply suggestion from @MartinBraquet
MartinBraquet dcbb7d3
Delete .vscode/settings.json
MartinBraquet e2f1bc8
Apply suggestion from @MartinBraquet
MartinBraquet cc3d85f
Apply suggestion from @MartinBraquet
MartinBraquet 946bfea
Apply suggestion from @MartinBraquet
MartinBraquet 11cf0c7
Linting and Prettier
O-Bots d6e165f
Updated People page
O-Bots 2920e81
Fix app.ts
O-Bots e7ae493
Updated peoplePage.ts: continued adding functions to use filters
O-Bots 5aa8a54
Coderabbitai fix's
O-Bots 9d48633
.
O-Bots c1c9eee
Updated People page
O-Bots 07c0eca
Lint and Prettier
O-Bots 410f2a1
.
O-Bots File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Silent early return masks failures and
textContent()skips Playwright auto-waiting.Two concerns with the new assertion logic:
if (!actualCount) returnturns a missing/empty profile-count element into a silent pass. A verification method should fail loudly when the value under test cannot be read — otherwise a regression that empties the count element will go undetected.textContent()is a one-shot DOM read with no retry. If the count updates asynchronously after applying filters, the assertion can race the UI. Preferexpect(locator).toHaveText(...), which auto-waits/retries until the timeout, eliminating the need to manually parse and guard.♻️ Suggested refactor
async verifyNumberOfMatchingProfiles(count: number) { await expect(this.profileCount).toBeVisible() - const actualCount = await this.profileCount.textContent() - if (!actualCount) return - expect(parseInt(actualCount)).toStrictEqual(count) + await expect(this.profileCount).toHaveText(String(count)) }If the element contains additional text around the number (e.g.
"42 profiles"), use a regex variant instead:🤖 Prompt for AI Agents