diff --git a/test/e2e/app-dir/app-basepath-custom-server/index.test.ts b/test/e2e/app-dir/app-basepath-custom-server/index.test.ts index 99d7f46fb2e54..57a9f9abf988c 100644 --- a/test/e2e/app-dir/app-basepath-custom-server/index.test.ts +++ b/test/e2e/app-dir/app-basepath-custom-server/index.test.ts @@ -23,10 +23,11 @@ createNextDescribe( expect(await getCount()).toBe('Count: 2') }) - await browser - .elementById('submit-server-action-redirect') - .click() - .waitForElementByCss('#another') + await browser.elementById('submit-server-action-redirect').click() + + expect(await browser.waitForElementByCss('#another').text()).toBe( + 'Another Page' + ) expect(await browser.url()).toBe( `http://localhost:${next.appPort}/base/another` )