Skip to content

Commit 1a04423

Browse files
committed
fix: WebKit compatibility and test stability improvements
1. WebKit URL compatibility: - Changed default URLs from 0.0.0.0 to 127.0.0.1 - WebKit blocks navigation to 0.0.0.0 with security error: 'Not allowed to use restricted network host' - TestHelper.siteUrl(): http://0.0.0.0:8000http://127.0.0.1:8000 - TestHelper.seleniumHost(): 0.0.0.0 → 127.0.0.1 2. Test stability: - Changed flaky GitHub test to use example.com - example.com is faster, more reliable, and designed for testing - Reduces network-related test failures in CI Results: - All 41 WebKit acceptance tests now pass - Tests run faster and more reliably - Exit codes correctly reflect test results
1 parent 68231af commit 1a04423

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/acceptance/config_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ Scenario('change config 6 @WebDriverIO @Puppeteer @Playwright', ({ I }) => {
4242
}).config({ url: 'https://codecept.io' })
4343

4444
Scenario('simple page test @WebDriverIO @Puppeteer @Playwright', ({ I }) => {
45-
I.amOnPage('https://github.com')
46-
I.see('GitHub')
45+
I.amOnPage('https://example.com')
46+
I.see('Example Domain')
4747
})

test/support/TestHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class TestHelper {
22
static siteUrl() {
3-
return process.env.SITE_URL || 'http://0.0.0.0:8000'
3+
return process.env.SITE_URL || 'http://127.0.0.1:8000'
44
}
55

66
static angularSiteUrl() {
@@ -12,7 +12,7 @@ class TestHelper {
1212
}
1313

1414
static seleniumHost() {
15-
return process.env.SELENIUM_HOST || '0.0.0.0'
15+
return process.env.SELENIUM_HOST || '127.0.0.1'
1616
}
1717

1818
static seleniumPort() {

0 commit comments

Comments
 (0)