Skip to content

Commit 4f3cdac

Browse files
committed
Fixed test, added firefox for playwright tests
1 parent 0700bff commit 4f3cdac

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/jest/slack.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
} from "../../apps/contact/app/(helpers)/slack";
55

66
const mockData = {
7-
name: "Test",
7+
name: "Test name",
88
email: "test@test.com",
99
url: "https://www.test.dev/",
1010
};
@@ -22,7 +22,7 @@ const mockBlocks = [
2222
type: "section",
2323
text: {
2424
type: "mrkdwn",
25-
text: `We got a new message from _${mockData.name}_ (_${mockData.email}_).`,
25+
text: `We got a new message from _Test name_ (_test@test.com_).`,
2626
},
2727
},
2828
{
@@ -42,7 +42,7 @@ const mockBlocks = [
4242
emoji: true,
4343
},
4444
value: "new_message_click",
45-
url: mockData.url,
45+
url: "https://www.test.dev/",
4646
action_id: "button-action",
4747
},
4848
},

tests/playwright.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export default defineConfig({
4040
use: { ...devices["Desktop Chrome"] },
4141
},
4242

43-
// {
44-
// name: "firefox",
45-
// use: { ...devices["Desktop Firefox"] },
46-
// },
43+
{
44+
name: "firefox",
45+
use: { ...devices["Desktop Firefox"] },
46+
},
4747

4848
// {
4949
// name: "webkit",

0 commit comments

Comments
 (0)