Skip to content

Commit

Permalink
Episode media moved to its own tab
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Aug 9, 2023
1 parent 1f9c30d commit 1b98533
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cypress/e2e/feeder.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,22 @@ describe("Feeder", () => {
}
});

// add image/audio and create episode
// add image and create episode
cy.get("#episode_title").type(canary);
cy.get("#episode_ad_breaks").type(0);
cy.get("#episode-media input[type=file]").selectFile(audioFile, { force: true });
cy.get("#episode-form-image input[type=file]").selectFile(imageFile, { force: true });
cy.contains(".btn", "Create Draft").click();
cy.contains("Episode created");

// add audio and save
cy.contains("a", "Media Files").click();
cy.get("#episode_ad_breaks").type(0);
cy.get("#episode-form-media input[type=file]").selectFile(audioFile, { force: true });
cy.contains(".btn", "Save").click();
cy.contains("Media files updated");

// wait for file processing, then publish
cy.get("#episode-media .spinner-border", { timeout: 60000 }).should("not.exist");
cy.get("#episode-form-media .spinner-border", { timeout: 60000 }).should("not.exist");
cy.get(".prx-tabs-nav a").first().click();
cy.get("#episode-form-image .spinner-border", { timeout: 5000 }).should("not.exist");
cy.get("#episode_publishing_status").select("Published", { force: true });
cy.contains(".btn", "Save").click();
Expand Down

0 comments on commit 1b98533

Please sign in to comment.