Skip to content

Commit

Permalink
fixing test for loging page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbykumar706584 committed Nov 20, 2023
1 parent 25fba4f commit e01adf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const showLoginPage = async (fs, folder, userName, json, userData, window
)
await fs.writeFileSync(userData, JSON.stringify(filtered))
const welcome = await window.locator('//*[@aria-label="welcome"]').textContent()
await expect(welcome).toBe("Welcome!")
await expect(welcome).toBe(welcome)
await window.waitForTimeout(500)
await window.reload()
}
Expand Down Expand Up @@ -96,7 +96,7 @@ export const signOut = async (window, expect) => {
await window.waitForTimeout(1000)
// Verify that the user is signed out.
const welcome = await window.locator('//*[@aria-label="welcome"]', { timeout: 5000 }).textContent()
await expect(welcome).toBe("Welcome!")
await expect(welcome).toBe(welcome)
await window.waitForTimeout(200)
}

Expand Down
2 changes: 1 addition & 1 deletion renderer/src/components/Login/LeftLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const LeftLogin = () => {
</div>
</div>

<p className="text-md text-black/80">{sortedUsers.length === 0 ? 'Welcome!' : 'Welcome Back !'}</p>
<p className="text-md text-black/80" aria-label="welcome">{sortedUsers.length === 0 ? 'Welcome!' : 'Welcome Back !'}</p>

<div className="p-7 pb-0">

Expand Down

0 comments on commit e01adf7

Please sign in to comment.