plum-e2e 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- #
2
- # This file is part of Plum.
3
- #
4
- # Plum is free software: you can redistribute it and/or modify
5
- # it under the terms of the GNU General Public License as published by
6
- # the Free Software Foundation, either version 3 of the License, or
7
- # (at your option) any later version.
8
- #
9
- # Plum is distributed in the hope that it will be useful,
10
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- # GNU General Public License for more details.
13
- #
14
- # You should have received a copy of the GNU General Public License
15
- # along with Plum. If not, see https://www.gnu.org/licenses/.
16
- #
17
-
18
- FROM mcr.microsoft.com/playwright:v1.41.1
19
- WORKDIR /app
20
-
21
- COPY package.json package-lock.json ./
22
- RUN npm install
23
- RUN npx playwright install --with-deps
24
-
25
- COPY . .
26
-
27
- RUN npm run create-env && sed -i 's/^IS_HEADLESS=false/IS_HEADLESS=true/' .env
28
-
29
- EXPOSE 3001
30
- CMD ["node", "server.js"]
1
+ #
2
+ # This file is part of Plum.
3
+ #
4
+ # Plum is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # Plum is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ #
17
+
18
+ FROM mcr.microsoft.com/playwright:v1.41.1
19
+ WORKDIR /app
20
+
21
+ COPY package.json package-lock.json ./
22
+ RUN npm install
23
+ RUN npx playwright install --with-deps
24
+
25
+ COPY . .
26
+
27
+ RUN npm run create-env && sed -i 's/^IS_HEADLESS=false/IS_HEADLESS=true/' .env
28
+
29
+ EXPOSE 3001
30
+ CMD ["node", "server.js"]
@@ -1,6 +1,6 @@
1
- @suite-1
2
- Feature: Demo Sauce Login
3
-
4
- @test-1
5
- Scenario: Verify User Can Login Using Correct Details
1
+ @suite-1
2
+ Feature: Demo Sauce Login
3
+
4
+ @test-1
5
+ Scenario: Verify User Can Login Using Correct Details
6
6
  Given I am in Demo Sauce Login page
package/bin/plum.js CHANGED
@@ -116,12 +116,16 @@ switch (command) {
116
116
  // Convert Windows paths to safe format
117
117
  const userTestsAbs = path.resolve(process.cwd(), 'tests').replace(/\\/g, '/');
118
118
  const userModulesAbs = path.resolve(process.cwd(), 'node_modules').replace(/\\/g, '/');
119
+ const userReportsAbs = path.resolve(process.cwd(), 'reports').replace(/\\/g, '/');
120
+ const plumConfigAbs = path.join(plumRoot, 'backend', 'config').replace(/\\/g, '/');
119
121
 
120
122
  // Generate docker-compose.override.yml
121
123
  const overrideYAML = [
122
124
  'services:',
123
125
  ' backend:',
124
126
  ' volumes:',
127
+ ` - "${userReportsAbs}:/app/reports"`,
128
+ ` - "${plumConfigAbs}:/app/config"`,
125
129
  ` - "${userTestsAbs}:/app/tests"`,
126
130
  ` - "${userModulesAbs}:/app/tests/node_modules"`
127
131
  ].join('\n');
@@ -1,26 +1,26 @@
1
- #
2
- # This file is part of Plum.
3
- #
4
- # Plum is free software: you can redistribute it and/or modify
5
- # it under the terms of the GNU General Public License as published by
6
- # the Free Software Foundation, either version 3 of the License, or
7
- # (at your option) any later version.
8
- #
9
- # Plum is distributed in the hope that it will be useful,
10
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- # GNU General Public License for more details.
13
- #
14
- # You should have received a copy of the GNU General Public License
15
- # along with Plum. If not, see https://www.gnu.org/licenses/.
16
- #
17
-
18
- FROM node:18-alpine
19
- WORKDIR /app
20
-
21
- COPY package.json package-lock.json ./
22
- RUN npm install
23
-
24
- COPY . .
25
- EXPOSE 5173
26
- CMD ["npm", "run", "dev", "--", "--host"]
1
+ #
2
+ # This file is part of Plum.
3
+ #
4
+ # Plum is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # Plum is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ #
17
+
18
+ FROM node:18-alpine
19
+ WORKDIR /app
20
+
21
+ COPY package.json package-lock.json ./
22
+ RUN npm install
23
+
24
+ COPY . .
25
+ EXPOSE 5173
26
+ CMD ["npm", "run", "dev", "--", "--host"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plum-e2e",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/silverlunah/plum.git"
@@ -8,7 +8,7 @@
8
8
  "description": "A detached test automation environment that combines Playwright and Cucumber with a Svelte frontend and an Express backend. It allows users to trigger tests, monitor reports, and schedule test runs through an intuitive UI.",
9
9
  "main": "index.js",
10
10
  "scripts": {
11
- "init": "(npm install) && (cd backend && npm install && npm run create-env && node config/scripts/create-settings.js) && (cd ../frontend && npm install && echo 'Frontend install complete')",
11
+ "init": "(npm install) && (cd backend && npm install && npm run create-env && node config/scripts/create-settings.js) && (cd frontend && npm install && echo 'Frontend install complete')",
12
12
  "format": "prettier --write .",
13
13
  "add-license": "npx license-check-and-add add -f license-config.json",
14
14
  "prepare": "husky",
@@ -1,23 +1,23 @@
1
- /*
2
- This file is part of Plum.
3
-
4
- Plum is free software: you can redistribute it and/or modify
5
- it under the terms of the GNU General Public License as published by
6
- the Free Software Foundation, either version 3 of the License, or
7
- (at your option) any later version.
8
-
9
- Plum is distributed in the hope that it will be useful,
10
- but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- GNU General Public License for more details.
13
-
14
- You should have received a copy of the GNU General Public License
15
- along with Plum. If not, see https://www.gnu.org/licenses/.
16
- */
17
- /* -----------------------------------------------------
18
- * Title
19
- * Description:
20
- * - Description of what this section/function does
21
- * Params:
22
- * - param1: brief description of parameter
1
+ /*
2
+ This file is part of Plum.
3
+
4
+ Plum is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU General Public License as published by
6
+ the Free Software Foundation, either version 3 of the License, or
7
+ (at your option) any later version.
8
+
9
+ Plum is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU General Public License for more details.
13
+
14
+ You should have received a copy of the GNU General Public License
15
+ along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ */
17
+ /* -----------------------------------------------------
18
+ * Title
19
+ * Description:
20
+ * - Description of what this section/function does
21
+ * Params:
22
+ * - param1: brief description of parameter
23
23
  * ------------------------------------------------------ */
@@ -1,14 +1,14 @@
1
- This file is part of Plum.
2
-
3
- Plum is free software: you can redistribute it and/or modify
4
- it under the terms of the GNU General Public License as published by
5
- the Free Software Foundation, either version 3 of the License, or
6
- (at your option) any later version.
7
-
8
- Plum is distributed in the hope that it will be useful,
9
- but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- GNU General Public License for more details.
12
-
13
- You should have received a copy of the GNU General Public License
1
+ This file is part of Plum.
2
+
3
+ Plum is free software: you can redistribute it and/or modify
4
+ it under the terms of the GNU General Public License as published by
5
+ the Free Software Foundation, either version 3 of the License, or
6
+ (at your option) any later version.
7
+
8
+ Plum is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License
14
14
  along with Plum. If not, see https://www.gnu.org/licenses/.