Conduct usability testing for the dashboard#52
Open
ndefokou wants to merge 4 commits into
Open
Conversation
stephane-segning
requested changes
Nov 10, 2023
Contributor
stephane-segning
left a comment
There was a problem hiding this comment.
Very good work @ndefokou! I like your enthousiams! I can see you're enjoying this. I'll guide you a bit more. Starting by these points:
Collaborator
Author
|
Okay sir for the file and it extension I saw that when I have push already
but I send another one conduct.py
…On Fri, 10 Nov 2023, 13:23 Stephane SEGNING LAMBOU, < ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Very good work @ndefokou <https://github.com/ndefokou>! I like your
enthousiams! I can see you're enjoying this. I'll guide you a bit more.
Starting by these points:
------------------------------
On conduct-usability-testng
<#52 (comment)>
:
This is supposed to be a python file, isn't it? Please change the extension
------------------------------
On services/__pycache__/cpu_service.cpython-310.pyc
<#52 (comment)>
:
You don't need this file. Please remove it
------------------------------
On services/__pycache__/memory_service.cpython-310.pyc
<#52 (comment)>
:
You don't need this file. Please remove it
------------------------------
On services/__pycache__/time_service.cpython-310.pyc
<#52 (comment)>
:
You don't need this file. Please remove it
------------------------------
In conduct.py
<#52 (comment)>
:
> +
+# Example 2: Test navigation to a different page
+try:
+ # Click on a link or button to navigate to a different page
+ driver.find_element(By.ID, "nav_link").click()
+
+ # Wait for the new page to load
+ WebDriverWait(driver, 10).until(
+ EC.url_contains("new_page")
+ )
+ print("Navigation to a different page is successful.")
+except:
+ print("Navigation to a different page failed.")
+
+# Example 3: Verify the visibility of a specific component using daisyui.css
+component_locator = "daisyui.css:.component"
What is this locator pointing to? I couldn't find it myself. To better
understand this, read this
https://www.scrapingbee.com/webscraping-questions/selenium/how-to-find-elements-css-selector-selenium/
------------------------------
In conduct.py
<#52 (comment)>
:
> +# Example 1: Verify if a specific element is present
+try:
+ element = WebDriverWait(driver, 10).until(
+ EC.presence_of_element_located((By.ID, "element_id"))
+ )
+ print("Element is present on the dashboard.")
+except:
+ print("Element is not present on the dashboard.")
+
+# Example 2: Test navigation to a different page
+try:
+ # Click on a link or button to navigate to a different page
+ driver.find_element(By.ID, "nav_link").click()
+
+ # Wait for the new page to load
+ WebDriverWait(driver, 10).until(
+ EC.url_contains("new_page")
+ )
+ print("Navigation to a different page is successful.")
+except:
+ print("Navigation to a different page failed.")
What is the use?
------------------------------
On conduct-usability-testng
<#52 (comment)>
:
Or even remove it. Idk the difference with the conduct.py file
—
Reply to this email directly, view it on GitHub
<#52 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDYPHTSFAYE7Y4TWEZFB7OTYDYMFHAVCNFSM6AAAAAA7GAQRHCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOMRUGY2TMMBTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
stephane-segning
approved these changes
Nov 11, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@stephane-segning