Skip to content

Commit

Permalink
Refactor for compactness
Browse files Browse the repository at this point in the history
  • Loading branch information
radical-ube committed Jun 4, 2024
1 parent 06d9cb2 commit ab48855
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cypress/e2e/augury.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ describe("Augury", () => {
const audioFile = "cypress/samples/two-tone.mp3";

cy.visit("/creatives");
cy.get("h1").contains("Creatives");
cy.contains("h1", "Creatives");

// create creative
cy.get("a.btn-success[href='/creatives/new']").click();
cy.contains("New Creative");
cy.get("#creative_filename").type(`Creative ${canary}`);
cy.get(".uploader-container").get("input[type=file]").selectFile(audioFile, { force: true });
cy.get("#creative_account_id").next().type("{downArrow}{downArrow}{enter}");
Expand All @@ -82,9 +81,9 @@ describe("Augury", () => {
// delete creative
cy.visit("/creatives");
cy.contains(`Creative ${canary}`).click();
cy.get("#list-settings-list").next().children().first().click();
cy.get("[id^=creative\-context-]").click();

Check failure on line 84 in cypress/e2e/augury.cy.ts

View workflow job for this annotation

GitHub Actions / check-javascript / check-javascript

Delete `\`

Check failure on line 84 in cypress/e2e/augury.cy.ts

View workflow job for this annotation

GitHub Actions / check-javascript / check-javascript

Unnecessary escape character: \-
cy.contains("Delete Creative").click();
cy.get("button.btn-danger").contains("Delete Creative").click();
cy.contains("button.btn-danger", "Delete Creative").click();
cy.contains("Creative deleted");
});
});

0 comments on commit ab48855

Please sign in to comment.