Skip to content

Commit 1d868c7

Browse files
committed
chore: enable more tests
1 parent 205b8ff commit 1d868c7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/e2e/app-dir/app-static.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ describe('app-dir static/dynamic handling', () => {
220220
}
221221
})
222222

223-
usuallySkip('should honor dynamic = "force-static" correctly (lazy)', async () => {
223+
it('should honor dynamic = "force-static" correctly (lazy)', async () => {
224224
const res = await fetchViaHTTP(next.url, '/force-static/random')
225225
expect(res.status).toBe(200)
226226

@@ -241,8 +241,7 @@ describe('app-dir static/dynamic handling', () => {
241241
expect(firstTime).toBe($2('#now').text())
242242
}
243243
})
244-
// NTL Skip
245-
it.skip('should handle dynamicParams: false correctly', async () => {
244+
it('should handle dynamicParams: false correctly', async () => {
246245
const validParams = ['tim', 'seb', 'styfle']
247246

248247
for (const param of validParams) {
@@ -315,8 +314,7 @@ describe('app-dir static/dynamic handling', () => {
315314
expect($('#page').text()).toBe('/blog/[author]/[slug]')
316315
}
317316
})
318-
// NTL Skip
319-
it.skip('should navigate to static path correctly', async () => {
317+
it('should navigate to static path correctly', async () => {
320318
const browser = await webdriver(next.url, '/blog/tim')
321319
await browser.eval('window.beforeNav = 1')
322320

test/e2e/next-test-lib/next-test-utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ export function renderViaHTTP(appPort, pathname, query, opts) {
128128
export async function fetchViaHTTP(appPort, pathname, query = undefined, opts = undefined, useUndici = false) {
129129
const url = `${pathname}${typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''}`
130130
const fetch = useUndici ? undiciFetch : nodeFetch
131-
return fetch(getFullUrl(appPort, url), opts)
131+
const fullUrl = getFullUrl(appPort, url)
132+
console.log(`Fetching url: ${fullUrl}`)
133+
return fetch(fullUrl, opts)
132134
}
133135

134136
export function runNextCommand(argv, options = {}) {

0 commit comments

Comments
 (0)