mitodl / ocw-studio

Open Source Courseware authoring tool
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

chore(e2e): update fixtures for external resource tests #2116

Closed HussainTaj-arbisoft closed 4 months ago

HussainTaj-arbisoft commented 4 months ago

What are the relevant tickets?

Complements https://github.com/mitodl/ocw-hugo-themes/pull/1298

Description (What does it do?)

This PR updates fixtures to include new data for tests defined in https://github.com/mitodl/ocw-hugo-themes/pull/1298.

How can this be tested?

  1. Navigate to your local setup of ocw-studio.
  2. Checkout hussaintaj/ocw-hugo-themes-pull-1298.
  3. Start Studio.
  4. Run
    docker compose exec web ./manage.py loaddata test_site_fixtures/test_website_content.json
  5. Expect the above command to succeed.
  6. Expect the following page to exist http://localhost:8043/sites/ocw-ci-test-course/type/page/edit/2f9c424e-c9ba-4d1e-b1f6-e89de1bf682a/