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
↓ 3 callers
Method
get_actual_rating
(self)
UI/pages/ProductPage.py:67
↓ 3 callers
Method
get_brand_list_length
(self)
UI/pages/BasePage.py:112
↓ 3 callers
Method
get_dislike_own_counter
(self)
UI/pages/ProductPage.py:105
↓ 3 callers
Method
get_dislike_someone_counter
(self)
UI/pages/ProductPage.py:109
↓ 3 callers
Function
get_product_info
Extracts product info (ID and quantity) from a response. Args: response: The JSON response.
framework/tools/methods_to_cart.py:8
↓ 3 callers
Function
get_quantity_specific_cart_item
Extracts the quantity of a specific item from json response based on the provided specific ID. Args: response: The JSON response from requ
framework/tools/methods_to_cart.py:149
↓ 3 callers
Method
get_seller_list_length
(self)
UI/pages/BasePage.py:161
↓ 3 callers
Method
is_correct_page_presented
(self, url: str)
UI/pages/BasePage.py:233
↓ 3 callers
Method
is_element_displayed
(self, how, what)
UI/pages/BasePage.py:251
↓ 3 callers
Method
like_own_review
(self)
UI/pages/ProductPage.py:235
↓ 3 callers
Method
remove_favorites_products
(self)
UI/pages/FavoritesPage.py:42
↓ 3 callers
Method
remove_filter_badge
(self, products_filter: str)
UI/pages/locators.py:41
↓ 2 callers
Method
add_product_2_to_cart
(self)
UI/pages/BasePage.py:29
↓ 2 callers
Method
add_product_to_favorites
(self)
UI/pages/ProductPage.py:15
↓ 2 callers
Function
assert_added_product_not_in_api_response
Asserts that none of the products specified in added_products are present in the API response. Args: added_products: A list of dicti
framework/asserts/assert_cart.py:24
↓ 2 callers
Function
assert_deleted_item_ids_in_response
Checking deleted items in the request API Args: response: The API response object, expected to contain a JSON body with product inform
framework/asserts/assert_cart.py:5
↓ 2 callers
Function
assert_partial_match
Asserts that the specified fields in the actual object match those in the expected object. Args: expected: The object with expected
framework/asserts/user_asserts.py:36
↓ 2 callers
Function
assert_update_user_data_matches
Asserts that all relevant user data in the response matches the expected user data. Args: response_data: The user data from the API respo
framework/asserts/user_asserts.py:20
↓ 2 callers
Method
change_email
(self, new_email)
UI/pages/EditProfilePage.py:6
↓ 2 callers
Method
change_first_name
(self, new_first_name)
UI/pages/EditProfilePage.py:11
↓ 2 callers
Method
change_last_name
(self, new_last_name)
UI/pages/EditProfilePage.py:16
↓ 2 callers
Method
click_continue_shopping_button
(self)
UI/pages/CartPage.py:10
↓ 2 callers
Method
click_continue_shopping_button
(self)
UI/pages/FavoritesPage.py:12
↓ 2 callers
Method
click_minus_button
(self)
UI/pages/BasePage.py:44
↓ 2 callers
Method
click_plus_2_button
(self)
UI/pages/CartPage.py:26
↓ 2 callers
Method
close
Closing the connection
framework/queries/postgres_db.py:25
↓ 2 callers
Method
delete_item_from_cart
Deleting item from shopping cart Args: cart_item_id: data for deleting items from shopping cart with required fields
framework/endpoints/cart_api.py:83
↓ 2 callers
Method
dislike_own_review
(self)
UI/pages/ProductPage.py:45
↓ 2 callers
Function
extract_product_info_from_list_of_products
Extract random product info from the API response. Extracts product info from the response based on the given product ID. Returns a list of t
framework/tools/review_methods.py:249
↓ 2 callers
Function
extract_random_product_info
Extract random product info from list of products. Selects a random sample of products from the response based on the given quantity. Returns
framework/tools/review_methods.py:221
↓ 2 callers
Function
generate_and_insert_user
Generating and inserting a user into the database Args: postgres: connection to Postgres DataBase
tests/conftest.py:96
↓ 2 callers
Function
generate_and_insert_user_with_custom_gmail
Generating and inserting a user into the database Args: postgres: connection to Postgres DataBase user: A dictionary representing
tests/conftest.py:416
↓ 2 callers
Function
get_amount_of_reviews_with_particular_rating
Verify the amount of reviews with particular rating. Args: response: The response object from the API call. rating: The rating
framework/tools/review_methods.py:454
↓ 2 callers
Method
get_by_id
Getting product info by id Args: token: JWT token for authorization of request; _id: product ID.
framework/endpoints/product_api.py:12
↓ 2 callers
Method
get_data_by_filter
Getting data from table by filter field and its value Args: table: table in database; field: field of table;
framework/queries/postgres_db.py:29
↓ 2 callers
Method
get_product_price
(self)
UI/pages/BasePage.py:128
↓ 2 callers
Method
get_product_review_statistics
Getting product review statistics Args: product_id: ID of product
framework/endpoints/review_api.py:143
↓ 2 callers
Method
get_products_price_list
(self)
UI/pages/BasePage.py:132
↓ 2 callers
Method
get_products_rating_list
(self)
UI/pages/BasePage.py:145
↓ 2 callers
Method
get_random_products
Getting a random product Args: quantity: number of random products
framework/queries/postgres_db.py:41
↓ 2 callers
Method
get_review_author
(self)
UI/pages/ProductPage.py:146
↓ 2 callers
Method
get_reviews_amount
(self)
UI/pages/ProductPage.py:153
↓ 2 callers
Method
go_to_login_page
(self)
UI/pages/BasePage.py:175
↓ 2 callers
Method
is_badge_displayed
(self, product_filter: str)
UI/pages/BasePage.py:199
↓ 2 callers
Method
is_badge_present
(self, product_filter: str)
UI/pages/BasePage.py:195
↓ 2 callers
Method
is_cart_page_link_clickable
(self)
UI/pages/ProductPage.py:169
↓ 2 callers
Method
is_cart_page_link_present
(self)
UI/pages/ProductPage.py:166
↓ 2 callers
Method
is_change_product_counter
(self, amount: str)
UI/pages/BasePage.py:226
↓ 2 callers
Method
is_dropdown_present
(self)
UI/pages/RegistrationPage.py:7
↓ 2 callers
Method
is_favorites_empty
(self)
UI/pages/FavoritesPage.py:31
↓ 2 callers
Method
is_favorites_page_link_clickable
(self)
UI/pages/ProductPage.py:183
↓ 2 callers
Method
is_favorites_page_link_present
(self)
UI/pages/ProductPage.py:180
↓ 2 callers
Method
is_heart_on_product_red
(self)
UI/pages/BasePage.py:345
↓ 2 callers
Method
is_heart_on_product_transparent
(self)
UI/pages/BasePage.py:348
↓ 2 callers
Method
is_heart_red
(self)
UI/pages/ProductPage.py:186
↓ 2 callers
Method
is_heart_transparent
(self)
UI/pages/ProductPage.py:194
↓ 2 callers
Method
is_main_page_link_clickable
(self)
UI/pages/ProductPage.py:211
↓ 2 callers
Method
is_main_page_link_present
(self)
UI/pages/ProductPage.py:208
↓ 2 callers
Method
is_new_email_present
(self, new_email)
UI/pages/ProfilePage.py:12
↓ 2 callers
Method
is_new_first_name_present
(self, new_first_name)
UI/pages/ProfilePage.py:21
↓ 2 callers
Method
is_new_last_name_present
(self, new_last_name)
UI/pages/ProfilePage.py:28
↓ 2 callers
Method
is_no_result_message_present
(self)
UI/pages/BasePage.py:351
↓ 2 callers
Method
is_valid_identifier
Check if the identifier is a valid SQL identifier to prevent SQL injection
framework/queries/postgres_remote_db.py:57
↓ 2 callers
Method
like_dislike_product_review
Getting info about user via API Args: is_like: like or dislike(True or False) product_review_id: ID of product review
framework/endpoints/review_api.py:115
↓ 2 callers
Method
remove_filter
(self, products_filter: str)
UI/pages/BasePage.py:397
↓ 2 callers
Method
remove_product_from_favorites
(self)
UI/pages/ProductPage.py:251
↓ 2 callers
Method
remove_product_from_favorites
(self)
UI/pages/BasePage.py:404
↓ 2 callers
Method
scroll_down
(self)
UI/pages/BasePage.py:419
↓ 2 callers
Method
select_user_by_email
Search user by email in BD Args: email: user's email
framework/queries/postgres_db.py:153
↓ 2 callers
Method
show_more_less_brand
(self)
UI/pages/BasePage.py:440
↓ 2 callers
Method
show_more_less_seller
(self)
UI/pages/BasePage.py:447
↓ 2 callers
Function
verify_user_review
Checks if a given user has posted a specific text review and product rating in the response body. The function first ensures the response bo
framework/tools/review_methods.py:126
↓ 1 callers
Function
assert_id_key_and_its_value_is_not_empty_in_response
Asserts product IDs exist and are not empty in response. Checks that the JSON response contains an "id" key for each product and that the id
framework/asserts/assert_favorite.py:37
↓ 1 callers
Function
assert_page_number_in_reviews_body
Verify if the page number in the response body is equal to the expected page number. Args: response: The response object from the API ca
framework/tools/review_methods.py:277
↓ 1 callers
Function
assert_reviews_sorted_by_createdAt_in_ascending_order
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:366
↓ 1 callers
Function
assert_user_data_matches
Asserts that all relevant user data in the response matches the expected user data. Args: response_data: The user data from the API respo
framework/asserts/user_asserts.py:4
↓ 1 callers
Method
brand_checkbox
(self, brand: str)
UI/pages/locators.py:13
↓ 1 callers
Method
by_default
(self)
UI/pages/BasePage.py:39
↓ 1 callers
Function
check_mapping_api_to_db
Checking the mapping of data from the request API to the database Args: api_request: reference data, data from an API request;
framework/asserts/registration_asserts.py:5
↓ 1 callers
Method
checkbox
(self, rating)
UI/pages/locators.py:136
↓ 1 callers
Method
click_log_in_button
(self)
UI/pages/FavoritesPage.py:20
↓ 1 callers
Method
click_plus_button
(self)
UI/pages/BasePage.py:50
↓ 1 callers
Method
click_scroll_button
(self)
UI/pages/BasePage.py:56
↓ 1 callers
Method
click_show_more_button
(self)
UI/pages/BasePage.py:62
↓ 1 callers
Method
connect_mailbox
Method to establish a connection to the mailbox. Args: email_box: The email folder to connect to. Returns: M
framework/tools/class_email.py:13
↓ 1 callers
Function
create_and_authorize_user
Creating and authorizing a user within the test. Args: postgres: connection to Postgres DataBase
tests/review/conftest.py:42
↓ 1 callers
Method
create_user
Insert a user into the database Args: user: user data: - id: user id; - first_name: first name o
framework/queries/postgres_remote_db.py:114
↓ 1 callers
Method
data_for_sent
Registration data to be sent via the REST API Args: email: electronic mail; first_name: name of the user;
framework/steps/registration_steps.py:3
↓ 1 callers
Method
delete_favorites
Add product to favorites Args: id_product: product to delete from favorite list expected_status_code: expected http s
framework/endpoints/favorite_api.py:56
↓ 1 callers
Method
delete_product_review
Deleting user Args: review_id: id of review product_id: id of product expected_status_code: Expected HTTP
framework/endpoints/review_api.py:44
↓ 1 callers
Function
delete_user
Deleting a user from the database. Args: token (): Authentication token of the user to delete
tests/review/conftest.py:60
↓ 1 callers
Method
execute
(self, query: str, params: tuple = ())
framework/clients/db_client_ssh.py:89
↓ 1 callers
Method
filter_products_by_rating
(self, rating: Literal['4', '3', '2', '1', 'any'])
UI/pages/BasePage.py:96
↓ 1 callers
Function
generate_and_insert_user
Generating and inserting a user into the database Args: postgres: connection to Postgres DataBase
tests/review/conftest.py:19
↓ 1 callers
Function
generate_fake_review
()
framework/tools/review_methods.py:21
↓ 1 callers
Function
get_item_id
Gets item id from a JSON response. Args: response: The JSON response to extract ids from. Raises: ValueError: If JSON decodin
framework/tools/methods_to_cart.py:57
↓ 1 callers
Method
get_product_by_filter
Getting sorted products by size and page by page Args: field: field for sorted; ascend: ascending sorted, True - asc
framework/queries/postgres_db.py:55
↓ 1 callers
Method
go_to_edit_page
(self)
UI/pages/ProfilePage.py:8
↓ 1 callers
Method
go_to_registration_page
(self)
UI/pages/LoginPage.py:10
↓ 1 callers
Method
is_add_to_cart_button_present
(self)
UI/pages/BasePage.py:192
← previous
next →
101–200 of 458, ranked by callers