Skip to content

test: fix Playwright CI/CD failures and typos - #598

Open
VanshikaR7 wants to merge 1 commit into
fix/docs-update-readmemd-with-project-docume-1776756875from
fix/test-fix-playwright-ci/cd-failures-and-t-1785149633
Open

test: fix Playwright CI/CD failures and typos#598
VanshikaR7 wants to merge 1 commit into
fix/docs-update-readmemd-with-project-docume-1776756875from
fix/test-fix-playwright-ci/cd-failures-and-t-1785149633

Conversation

@VanshikaR7

Copy link
Copy Markdown
Owner

This PR fixes Playwright CI/CD failures by removing an intentional failure marker, correcting a typo in the negative test error message, and implementing a skip condition for the login page test when the BASE_URL is unconfigured or set to the default example.com.

Original Error/Logs

Click to expand the original error that triggered this fix
Fix the Playwright CI/CD failures in the VanshikaR7/Testing_Purpose repository. 1. Remove the intentional failure in 'tests/Negative_tests/01_Record_tests.spec.ts' (test.fail(process.env.CI === 'true')). 2. Fix the typo in the same file: change 'test Username and password do not match' to 'Username and password do not match'. 3. Update 'tests/Positive_tests/02_Loginpage.spec.ts' to handle cases where BASE_URL is not set or is example.com by skipping the test or providing a mock, as it currently timeouts searching for LDAP fields on example.com.

🤖 This PR was automatically generated by NudgeBee AI coding agent

Powered by AI-driven code analysis and automated fix generation

View Detailed Nubi Conversation

This PR fixes Playwright CI/CD failures by removing an intentional failure marker, correcting a typo in the negative test error message, and implementing a skip condition for the login page test when the BASE_URL is unconfigured or set to the default example.com.

## Original Error/Logs

<details>
<summary>Click to expand the original error that triggered this fix</summary>

```
Fix the Playwright CI/CD failures in the VanshikaR7/Testing_Purpose repository. 1. Remove the intentional failure in 'tests/Negative_tests/01_Record_tests.spec.ts' (test.fail(process.env.CI === 'true')). 2. Fix the typo in the same file: change 'test Username and password do not match' to 'Username and password do not match'. 3. Update 'tests/Positive_tests/02_Loginpage.spec.ts' to handle cases where BASE_URL is not set or is example.com by skipping the test or providing a mock, as it currently timeouts searching for LDAP fields on example.com.
```

</details>

---

🤖 **This PR was automatically generated by [NudgeBee](https://nudgebee.com) AI coding agent**

*Powered by AI-driven code analysis and automated fix generation*

View Detailed **[Nubi Conversation](http://localhost:3000/ask-nudgebee?accountId=b77b7c46-0d7f-44d8-a02f-e745da7718ea&session_id=1d41fb95-c504-47a1-acf7-9a21b77ab299)**
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