Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sunagatov/Iced-Latte-QA
/ functions
Functions
458 in github.com/Sunagatov/Iced-Latte-QA
⨍
Functions
458
◇
Types & classes
71
↳
Endpoints
55
↓ 1 callers
Method
is_banner_displayed
(self)
UI/pages/BasePage.py:203
↓ 1 callers
Method
is_cart_counter_present
(self)
UI/pages/BasePage.py:206
↓ 1 callers
Method
is_error_message_first_name_present
(self, error_message)
UI/pages/EditProfilePage.py:25
↓ 1 callers
Method
is_error_message_last_name_present
(self, error_message)
UI/pages/EditProfilePage.py:45
↓ 1 callers
Method
is_error_message_present
(self)
UI/pages/BasePage.py:275
↓ 1 callers
Method
is_filtering_by_brand_correct
(self, brand: str)
UI/pages/BasePage.py:281
↓ 1 callers
Method
is_filtering_by_rating_correct
(self, rating: Literal['4', '3', '2', '1', 'any'])
UI/pages/BasePage.py:311
↓ 1 callers
Method
is_filtering_by_seller_correct
(self, seller: str)
UI/pages/BasePage.py:333
↓ 1 callers
Method
is_login_page
(self)
UI/pages/LoginPage.py:18
↓ 1 callers
Method
is_login_page_link_clickable
(self)
UI/pages/ProductPage.py:205
↓ 1 callers
Method
is_login_page_link_present
(self)
UI/pages/ProductPage.py:202
↓ 1 callers
Method
is_profile_page_link_clickable
(self)
UI/pages/ProductPage.py:228
↓ 1 callers
Method
is_profile_page_link_present
(self)
UI/pages/ProductPage.py:225
↓ 1 callers
Method
is_sort_dropdown_displayed
(self)
UI/pages/BasePage.py:354
↓ 1 callers
Method
log_out
(self)
UI/pages/ProfilePage.py:35
↓ 1 callers
Method
login_existing_user
(self, email, password)
UI/pages/LoginPage.py:28
↓ 1 callers
Method
rating_checkbox
(self, rating: Literal['4', '3', '2', '1', 'any'])
UI/pages/locators.py:52
↓ 1 callers
Method
reset_brand_filter
(self)
UI/pages/BasePage.py:409
↓ 1 callers
Method
reset_seller_filter
(self)
UI/pages/BasePage.py:414
↓ 1 callers
Method
seller_checkbox
(self, seller: str)
UI/pages/locators.py:56
↓ 1 callers
Function
verify_user_review_body
Verifies the response body values match the expected value. The function first loads the response JSON. It then iterates through the response val
framework/tools/review_methods.py:472
Method
__init__
(self, imap_server: str, email_address: str, mail_password: str)
framework/tools/class_email.py:8
Method
__init__
Initializing the connection
framework/queries/postgres_db.py:14
Method
__init__
Initialize the database connection
framework/queries/postgres_remote_db.py:8
Method
__init__
(self)
framework/endpoints/product_api.py:8
Method
__init__
Initializing parameters for request
framework/endpoints/authenticate_api.py:13
Method
__init__
Initializing parameters for request
framework/endpoints/cart_api.py:13
Method
__init__
(self)
framework/endpoints/review_api.py:12
Method
__init__
Initializing parameters for request
framework/endpoints/favorite_api.py:13
Method
__init__
(self)
framework/endpoints/users_api.py:14
Method
__init__
Initializes a database connection tunnel via SSH. Creates an SSH tunnel to a remote server, binds to the remote PostgresSQL port,
framework/clients/db_client_ssh.py:10
Method
__init__
Initializing the connection Args: dbname: name Postgres database; host: URL for connecting to the Postgres
framework/clients/db_client.py:10
Method
__init__
(self, browser: WebDriver, url: str, timeout: int = 4)
UI/pages/BasePage.py:18
Method
add_product_to_cart
(self)
UI/pages/ProductPage.py:11
Function
add_product_to_favorite_list
Adds random products to a user's favorites list. Registers a new user, gets all products via API, selects random products, adds them to
tests/conftest.py:250
Function
add_review_to_product
(create_authorized_user, request)
tests/conftest.py:447
Function
assert_key_and_value_in_response
Asserts that the id review in the response body Args: key: specific key in the response body response: The response object from t
framework/asserts/common.py:118
Function
assert_rating
Asserts that the product rating in the response body matches the expected product rating. Args: response: The response object from the AP
framework/asserts/common.py:79
Function
assert_review_text
Asserts that the message in the response body matches the expected message. Args: response: The response object from the API call.
framework/asserts/common.py:64
Function
assert_reviews_sorted_asc
Verify if the reviews are sorted by createdAt in ascending order. Args: response: The response object from the API call.
framework/tools/review_methods.py:389
Function
assert_reviews_sorted_desc
Verify if the reviews are sorted by createdAt in descending order. Args: response: The response object from the API call.
framework/tools/review_methods.py:415
Function
assert_size_reviews_per_page
Verify size of reviews per page. Args: response: The response object from the API call. reviews_size_per_page: The expected siz
framework/tools/review_methods.py:297
Function
assert_user_name_in_response
Asserts that the user's name in the response body matches the expected user's name. Args: response: The response object from the API call
framework/asserts/common.py:94
Function
browser
(request)
UI/conftest.py:14
Method
click_minus_2_button
(self)
UI/pages/CartPage.py:18
Method
click_minus_button
(self)
UI/pages/ProductPage.py:29
Method
click_plus_button
(self)
UI/pages/ProductPage.py:33
Method
close
Close the database connection
framework/queries/postgres_remote_db.py:40
Method
close
Close the cursor, database connection, and SSH tunnel
framework/clients/db_client_ssh.py:62
Method
close
(self)
framework/clients/db_client.py:27
Function
create_and_delete_user_via_api
Creating and authorizing a user via API
tests/conftest.py:163
Function
create_authorized_user
Creating and authorizing a user Args: postgres: connection to Postgres DataBase
tests/conftest.py:139
Function
create_certain_number_of_reviews
(postgres, request)
tests/review/conftest.py:71
Method
create_random_users
Creating random user(s) Args: quantity: number of random users
framework/queries/postgres_db.py:134
Method
create_random_users
Create random user(s) Args: quantity: number of random users
framework/queries/postgres_remote_db.py:146
Function
create_user
Creating a user (not authorized) Args: postgres: connection to Postgres DataBase
tests/conftest.py:121
Function
creating_and_adding_product_to_shopping_cart
Fixture to create a user, add a product to their cart. Creates a user, gets their ID and token, adds a product to their shopping cart,
tests/conftest.py:191
Function
delete
(token)
tests/conftest.py:439
Method
delete_user
Deletes a user from the database based on user ID Args: user_id: user ID
framework/queries/postgres_db.py:144
Method
delete_user
Delete a user from the database based on user ID Args: user_id: user ID
framework/queries/postgres_remote_db.py:155
Function
extract_items_details
Extracts item ID and product quantity from each item in the given JSON response. Args: response: The JSON response containing item detail
framework/tools/methods_to_cart.py:105
Method
fetch_all
(self, query: str, params: tuple = ())
framework/clients/db_client_ssh.py:84
Function
generate_numeric_password
Generate a numeric password. Parameters: - length: int, the length of the password to generate. Returns: - A string representing the
framework/tools/generators.py:165
Method
get_data_by_filter
Retrieve data from a specified table by filtering on a specified field
framework/queries/postgres_remote_db.py:48
Function
get_define_quantity_items_id
Gets item ids from a JSON response. Args: num_items_to_delete: the quantity of items for delete response: The JSON response to extra
framework/tools/methods_to_cart.py:80
Method
get_product_by_filter
Get sorted products by size and paginate Args: field: field for sorting; ascend: ascending sort order, True - ascend
framework/queries/postgres_remote_db.py:73
Method
get_product_rating
(self)
UI/pages/BasePage.py:141
Method
get_product_reviews
(self)
UI/pages/BasePage.py:154
Method
get_product_weight
(self)
UI/pages/ProductPage.py:140
Method
get_random_products
Retrieve a specified number of random active products
framework/queries/postgres_remote_db.py:62
Method
get_random_users
Getting a random user Args: quantity: number of random users
framework/queries/postgres_db.py:79
Method
get_random_users
Get random users Args: quantity: number of random users
framework/queries/postgres_remote_db.py:99
Method
get_user_avatar
Getting info about user's avatar via API Args: expected_status_code: Expected HTTP code from Response token: JWT
framework/endpoints/users_api.py:87
Method
go_to_product_page
(self)
UI/pages/FavoritesPage.py:27
Method
is_cart_empty
(self)
UI/pages/CartPage.py:39
Method
is_change_amount
(self, amount)
UI/pages/ProductPage.py:173
Method
is_dropdown_present
(self)
UI/pages/LoginPage.py:15
Function
load_file_json
Load content from a file located in the specified directory. Args: directory (str): The directory where the file is located.
framework/tools/load_file.py:8
Method
post_user_avatar
Posts a user's avatar image to the API Args: token: JWT token for authorization of the request image_path: Path to the
framework/endpoints/users_api.py:105
Function
postgres
Connect to Postgres DataBase through ssh
tests/conftest.py:65
Function
postgres_local
Connect to Postgres DataBase
tests/conftest.py:85
Function
product_quantity
(request)
tests/conftest.py:245
Function
pytest_addoption
(parser)
UI/conftest.py:6
Method
register_new_user
(self, first_name, last_name, email, password)
UI/pages/RegistrationPage.py:10
Function
register_user_and_reset_password
(request)
tests/conftest.py:343
Function
registration_and_cleanup_user_through_api
(request)
tests/conftest.py:288
Method
select_user_by_email
Search for a user by email in the database and return the count of users with that email. Args: email: user's email Retu
framework/queries/postgres_remote_db.py:165
Method
setup_method
Generate data for registration and user registration
tests/registration/test_registration_negative.py:31
Method
should_be_login_link
(self)
UI/pages/BasePage.py:436
Method
test_1501_char_review
(self, browser)
UI/test_review_negative.py:54
Method
test_1857_char_review
(self, browser)
UI/test_review_negative.py:67
Method
test_add_and_delete_review_user
(self, browser)
UI/test_review_rating.py:33
Method
test_add_dislike_to_product_review
(self, create_authorized_user)
tests/review/test_is_like_product_review.py:104
Method
test_add_item_to_cart
(self, create_authorized_user)
tests/cart/test_add_item_to_cart_positive.py:22
Method
test_add_like_to_product_review
(self, create_authorized_user)
tests/review/test_is_like_product_review.py:26
Method
test_add_review
( self, create_authorized_user, text_review, expected_length, rating )
tests/review/test_add_review.py:48
Method
test_add_review_guest
(self, browser)
UI/test_review_rating.py:19
Method
test_add_review_parametrize
(self, browser, review_text)
UI/test_review_rating.py:67
Method
test_add_review_with_blacklist_token
(self, create_authorized_user)
tests/review/test_add_review.py:509
Method
test_add_review_with_empty_bearer_token
(self, create_authorized_user)
tests/review/test_add_review.py:410
← previous
next →
201–300 of 458, ranked by callers