Skip to content

Commit

Permalink
test(playwright): Convert Cypress tests to Playwright - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Dec 17, 2023
1 parent 02e51de commit c0e623c
Show file tree
Hide file tree
Showing 45 changed files with 1,216 additions and 788 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ jobs:
- name: Running E2E tests
run: yarn test:e2e
env:
PRISMIC_URL: https://wroom.io
WROOM_EMAIL: ${{ secrets.EMAIL }}
WROOM_PASSWORD: ${{ secrets.PASSWORD }}
DEBUG: pw:test

- name: Upload HTML report
uses: actions/upload-artifact@v3
Expand Down
25 changes: 0 additions & 25 deletions cypress/e2e/slices/01-duplicates.cy.js

This file was deleted.

45 changes: 0 additions & 45 deletions cypress/e2e/updates/changelog.cy.js

This file was deleted.

72 changes: 0 additions & 72 deletions cypress/e2e/updates/sidebar.cy.js

This file was deleted.

74 changes: 0 additions & 74 deletions cypress/e2e/updates/simulator-tooltip.cy.js

This file was deleted.

75 changes: 0 additions & 75 deletions cypress/e2e/updates/video-tooltip.cy.js

This file was deleted.

46 changes: 0 additions & 46 deletions cypress/e2e/user-flows/scenario_slice_association.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,50 +78,4 @@ describe.skip("I am an existing SM user (Next) and I want to associate a Slice t
cy.contains("Repeatable Rich Text Field");
cy.contains("Repeatable Key Text Field");
});

it("Push the newly created custom type and slice", () => {
changesPage.goTo().pushChanges().isUpToDate();
});

it.skip("Add the Slice to the Custom Type", () => {
cy.visit(`/custom-types/${customTypeId}`);

cy.get("[data-cy=update-slices]").click();
cy.get(`[data-cy=shared-slice-card-${sliceId}]`).click();
cy.get("[data-cy=update-slices-modal]").submit();

customTypeBuilder.save();

cy.reload();
cy.contains(sliceName);
});

it.skip("Push the custom type with the Slice associated", () => {
changesPage.goTo().pushChanges().isUpToDate();
});

it.skip("Displays and fill the satisfaction survey and the survey never reappears after", () => {
const lastSyncChange = Date.now() - 1000 * 60 * 60 * 2;

// Setting the context to display the survey
cy.setSliceMachineUserContext({
hasSendAReview: false,
lastSyncChange,
});

// Visit a page
cy.visit("/");

cy.get("#review-form");
cy.get("[data-cy=review-form-score-3]").click();
cy.get("[data-cy=review-form-comment]").type(
"Cypress test - testing the comment of the survey",
);
cy.get("#review-form").submit();

cy.reload();
cy.waitUntil(() => cy.get("[data-cy=create-ct]"));

cy.get("#review-form").should("not.exist");
});
});
Loading

0 comments on commit c0e623c

Please sign in to comment.