Skip to content

Ci - #9

Merged
saqibmanan merged 23 commits into
devfrom
CI
Jun 9, 2026
Merged

Ci#9
saqibmanan merged 23 commits into
devfrom
CI

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

No description provided.

Saqib added 23 commits June 3, 2026 19:08
test_con_005_sector_download was matching the chart-image link
(/api/download/chart/, currently 500) instead of the dataset file
(/api/download/resource/, 200). Scope DOWNLOAD_LINK to the resource
endpoint so the test validates dataset download as intended.
UC_DATASET_FIRST_CARD was scoped to a 'datasets_List' CSS-module
container that no longer exists in the DOM, so the dataset card was
never found and test_con_007 silently skipped. Match dataset links
under <main> instead, and scope DOWNLOAD_LINK to /download/resource/
(not the failing /download/chart/ image endpoint).
…nt JS date setter

Tags/SDG getter confusion (007, 010): SELECTED_TAGS and SELECTED_SDG_GOALS used an
identical unanchored XPath that matched all chips on the page. DOM order differs between
macOS (local) and Ubuntu (CI), causing the wrong combobox's chips to be returned.
Fixed by anchoring each locator to its own label using the same following::div[1] pattern
that SELECTED_GEOGRAPHY already uses correctly.

Date locale mismatch (011, 010): send_keys interprets keystrokes per OS date locale —
DD/MM/YYYY on macOS, MM/DD/YYYY on Ubuntu — so '01062023' gave June 1 locally but
January 6 in CI. Replaced send_keys with a locale-independent JS native-setter approach
(enter_date helper in base_page). All date callers updated to pass ISO YYYY-MM-DD strings.
…n API tests

- Use Optional[str] instead of str | None (Python 3.9 compat)
- Replace specific env example values with generic placeholders in comments
- Fix $tags variable type to [String!] to match backend schema
- Fix TypeDatasetMutationResponse field access (success/data pattern)
- Fix union return types with inline fragments (publishDataset, updateDataset)
- Fix deleteDataset scalar return — no selection set
- Add regression marker to pytest.ini for contract/auth-enforcement tests
- Reclassify provider flow tests (create dataset/usecase/charts/profile/collaborative) from smoke → functional
- Reclassify API tests: error-handling and auth-enforcement tests → regression; complex flow tests → functional
- Add missing @pytest.mark.smoke decorators to consumer component tests
- Reclassify consumer download/sector/usecase flow tests from smoke → functional
- Fix DATA_DATASET_CARD / PROMPT_DATASET_CARD locators: cards are <button> elements, not divs
- Fix prompt field locators to use label-based XPath (same pattern as Sectors/Tags)
- Add scroll-before-interact for prompt metadata fields (section is below the fold)
- Add click_add_new_prompt_dataset() to MyDashboardPage and OrganizationsPage
- Add prompt file upload support (go_to_prompt_files_tab, upload_prompt_file)
- Add test_prv_002b_ind_create_prompt_dataset (My Dashboard end-to-end)
- Add test_prv_006b_org_create_prompt_dataset (Org Dashboard end-to-end)
…lures

- Update all three jobs in run-smoke.yml to run -m "smoke or functional"
- Bump provider-smoke timeout to 60min to cover full functional suite
- Fix goto_my_dashboard and goto_organizations: wait for Loading spinner
  to clear and use 30s timeout (was 15s)
- Add @pytest.mark.timeout(360) to collaborative tests (010, 011)
gw0 uses TEST_EMAIL_1/TEST_PASSWORD_1, gw1 uses TEST_EMAIL_2/TEST_PASSWORD_2.
Eliminates Keycloak session contention when running with -n 2.
Falls back to TEST_USER_INDEX (or user 1) for non-parallel runs.
@saqibmanan
saqibmanan merged commit f41d86e into dev Jun 9, 2026
3 checks passed
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