Skip to content

Commit dacecb3

Browse files
authored
Enable or disable URL rewriting with a checkbox (#207)
Now that we have the ability to [rewrite URLs](#202) in the imported content, let's expose it to the users. This PR adds a checkbox in the author mapping step that sets URL rewriting on or off. It is checked by default: <img width="3482" height="1756" alt="CleanShot 2025-09-12 at 14 36 03@2x" src="https://github.com/user-attachments/assets/7f3684a7-05b8-4cc3-a696-696204dad46a" /> CC @schlessera @swissspidy – you might want to add a WP-CLI flag to enable the `rewrite_urls` option. Also cc @zaerl @brandonpayton ## Testing instructions CI. E2E tests cover a scenario where the checkbox is checked and unchecked.
1 parent 3f870a1 commit dacecb3

9 files changed

Lines changed: 421 additions & 311 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ on:
88

99
jobs:
1010
e2e:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
shard: [1, 2, 3]
1115
runs-on: ubuntu-latest
16+
name: E2E Tests (shard ${{ matrix.shard }})
1217
steps:
1318
- name: Checkout
1419
uses: actions/checkout@v4
@@ -29,7 +34,5 @@ jobs:
2934
npx playwright install-deps
3035
3136
- name: Run E2E tests
32-
run: |
33-
composer run e2e
34-
37+
run: composer run e2e -- --shard=${{ matrix.shard }}/3
3538

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
"phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5"
2222
},
2323
"scripts": {
24-
"e2e": "npx -y playwright test"
24+
"e2e": "npx -y playwright test --timeout 300000"
2525
},
2626
"config": {
2727
"allow-plugins": {
2828
"dealerdirect/phpcodesniffer-composer-installer": true
2929
},
30+
"process-timeout": 900,
3031
"lock": false
3132
}
3233
}

0 commit comments

Comments
 (0)