Skip to content

Commit

Permalink
test: unskip previously skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bapmrl committed Oct 27, 2023
1 parent e7533b4 commit 3ccfbf6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/slices/00-create.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("Create Slices", () => {
cy.clearProject();
});

it.skip("A user can create and rename a slice", () => {
it("A user can create and rename a slice", () => {
cy.createSlice(lib, sliceId, sliceName);

sliceBuilder.addNewWidgetField("Title", "Key Text");
Expand Down Expand Up @@ -144,7 +144,7 @@ describe("Create Slices", () => {
});

// See: #791
it.skip("A user cannot rename a slice with a name starting with a number", () => {
it("A user cannot rename a slice with a name starting with a number", () => {
const sliceName = "SliceName";

cy.createSlice(lib, sliceId, sliceName);
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/user-flows/scenario_custom_screenshots.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("I am an existing SM user and I want to upload screenshots on variation
sliceBuilder.goTo(slice.library, slice.name);
});

it.skip("Upload and replace custom screenshots", () => {
it("Upload and replace custom screenshots", () => {
// Upload custom screenshot on default variation
sliceBuilder.imagePreview.should("not.exist");
sliceBuilder.openScreenshotModal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const SharedSliceCard: FC<SharedSliceCardProps> = (props) => {
>
{src !== undefined ? (
<CardMedia
alt="Preview image"
overlay={
canUpdateScreenshot && !disableOverlay ? (
<Box alignItems="center" justifyContent="center">
Expand Down Expand Up @@ -156,9 +157,12 @@ export const SharedSliceCard: FC<SharedSliceCardProps> = (props) => {
) : action.type === "menu" ? (
<DropdownMenu modal>
<DropdownMenuTrigger disabled={disabled}>
<IconButton icon="moreVert" />
<IconButton data-cy="slice-action-icon" icon="moreVert" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuContent
align="end"
data-cy="slice-action-icon-dropdown"
>
{action.onRename ? (
<DropdownMenuItem
onSelect={action.onRename}
Expand Down
4 changes: 2 additions & 2 deletions packages/slice-machine/test/pages/slices.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe("slices", () => {
mockRouter.setCurrentUrl("/slices");
});

test.skip("When user creates a slice it should send a tracking event", async (ctx) => {
test("When user creates a slice it should send a tracking event", async (ctx) => {
const adapter = createTestPlugin({
setup: ({ hook }) => {
hook("slice:create", () => void 0);
Expand Down Expand Up @@ -206,7 +206,7 @@ describe("slices", () => {
);
});

test.skip("if creation fails it sohuld not send the tracking event", async (ctx) => {
test("if creation fails it sohuld not send the tracking event", async (ctx) => {
const adapter = createTestPlugin({
setup: ({ hook }) => {
hook("slice:create", () => {
Expand Down

0 comments on commit 3ccfbf6

Please sign in to comment.