Unverified Commit 47939786 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

test: skip action module instance deploy test (#96629)

There might be multiple function instances with their own
app/shared/action.js and thus multiple instances of the counter.
parent 4fdca028
......@@ -523,22 +523,26 @@ describe('app-dir action handling', () => {
})
})
it('should support importing the same action module instance in both server and action layers', async () => {
const browser = await next.browser('/shared')
// Skip in deployment mode: there might be multiple function instances with their own
// app/shared/action.js and thus multiple instances of the counter.
if (!isNextDeploy) {
it('should support importing the same action module instance in both server and action layers', async () => {
const browser = await next.browser('/shared')
const v = await browser.elementByCss('#value').text()
expect(v).toBe('Value = 0')
const v = await browser.elementByCss('#value').text()
expect(v).toBe('Value = 0')
await browser.elementByCss('#server-inc').click()
await retry(async () => {
expect(await browser.elementByCss('#value').text()).toBe('Value = 1')
})
await browser.elementByCss('#server-inc').click()
await retry(async () => {
expect(await browser.elementByCss('#value').text()).toBe('Value = 1')
})
await browser.elementByCss('#client-inc').click()
await retry(async () => {
expect(await browser.elementByCss('#value').text()).toBe('Value = 2')
await browser.elementByCss('#client-inc').click()
await retry(async () => {
expect(await browser.elementByCss('#value').text()).toBe('Value = 2')
})
})
})
}
it('should not block navigation events while a server action is in flight', async () => {
let browser = await next.browser('/client')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment