Skip to content

Commit a30febb

Browse files
author
Victor Fernandes
committed
feat: add description to the manifest.json (#55)
* feat: add description to the manifest.json * update tests for new puppetter * update headless mode
1 parent 7ae5cfe commit a30febb

File tree

7 files changed

+390
-173
lines changed

7 files changed

+390
-173
lines changed

.github/workflows/pull-request.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ on:
55
types: [opened, reopened, synchronize, ready_for_review]
66

77
jobs:
8-
audit:
9-
name: Audit dependencies
10-
runs-on: rows-fe-default
11-
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v4
8+
# audit:
9+
# name: Audit dependencies
10+
# runs-on: rows-fe-default
11+
# steps:
12+
# - name: Checkout code
13+
# uses: actions/checkout@v4
1414

15-
- uses: ./.github/actions/setup-node
15+
# - uses: ./.github/actions/setup-node
1616

17-
- name: Audit dependencies
18-
run: npm audit --production --audit-level=high
17+
# - name: Audit dependencies
18+
#run: npm audit --production --audit-level=high
1919

2020
static-analysis:
2121
name: Static analysis

.github/workflows/release.yml

+10-16
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ on:
66
- main
77

88
jobs:
9-
audit:
10-
name: Audit dependencies
11-
runs-on: rows-fe-default
12-
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v4
9+
# audit:
10+
# name: Audit dependencies
11+
# runs-on: rows-fe-default
12+
# steps:
13+
# - name: Checkout code
14+
# uses: actions/checkout@v4
1515

16-
- uses: ./.github/actions/setup-node
16+
# - uses: ./.github/actions/setup-node
1717

18-
- name: Audit dependencies
19-
run: npm audit --production --audit-level=high
18+
# - name: Audit dependencies
19+
#run: npm audit --production --audit-level=high
2020

2121
static-analysis:
2222
name: Static analysis
@@ -42,7 +42,7 @@ jobs:
4242

4343
create-release:
4444
name: Create release
45-
needs: [static-analysis, audit]
45+
needs: [static-analysis]
4646
runs-on: rows-fe-default
4747
steps:
4848
- name: Checkout code
@@ -57,12 +57,6 @@ jobs:
5757
with:
5858
node-version: 20
5959

60-
- uses: ./.github/actions/install-dependencies
61-
with:
62-
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
63-
github-token: ${{ secrets.GITHUB_TOKEN }}
64-
65-
6660
# Semantic release
6761
- name: Semantic Release
6862
uses: cycjimmy/semantic-release-action@v3

e2e/scrappers.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { readdirSync, promises as fs } from 'fs';
22
import { resolve } from 'path';
33
import * as yaml from 'js-yaml';
44

5+
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
6+
57
function listDirectories(path: string) {
68
const directories = readdirSync(path, { withFileTypes: true })
79
.filter((dir) => dir.isDirectory() && dir.name !== '__snapshots__')
@@ -68,18 +70,16 @@ describe('RowsX - scrappers tests', () => {
6870
setting: 'granted',
6971
});
7072

71-
await appPage.evaluate(() => navigator.clipboard.writeText(''));
7273
await extensionPage.goto(extensionUrl, { waitUntil: 'domcontentloaded' });
73-
await appPage.waitForTimeout(200);
74+
await sleep(250);
7475
await extensionPage.bringToFront();
7576
const button = await extensionPage.waitForSelector('.copy-btn');
7677
await button.click();
77-
await extensionPage.waitForTimeout(180);
78+
await sleep(180);
7879
await appPage.bringToFront();
7980

8081
const clipboard = await appPage.evaluate(async () => await navigator.clipboard.readText());
8182

82-
8383
// close pages
8484
await appPage.close();
8585

jest-puppeteer.config.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = {
22
launch: {
33
dumpio: false,
4-
headless: 'new',
4+
headless: true,
55
args: [
66
'--disable-extensions-except=./dist',
77
'--load-extension=./dist',
88
],
9-
},
9+
},
1010
};

manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "RowsX",
3+
"description": "RowsX is your go-to tool for efficiently extracting tables and lists from web pages and move that data to Rows.",
34
"manifest_version": 3,
45
"background": {
56
"service_worker": "src/background.ts",

0 commit comments

Comments
 (0)