rsnext/test/e2e/app-dir/back-button-download-bug/back-button-download-bug.test.ts
2022-12-21 14:16:52 +01:00

29 lines
779 B
TypeScript

import { createNextDescribe } from 'e2e-utils'
// TODO-APP: fix test as it's failing randomly
describe.skip('app-dir back button download bug', () => {
createNextDescribe(
'app-dir back button download bug',
{
files: __dirname,
skipDeployment: true,
},
({ next }) => {
it('should redirect route when clicking link', async () => {
const browser = await next.browser('/')
const text = await browser
.elementByCss('#to-post-1')
.click()
.waitForElementByCss('#post-page')
.text()
expect(text).toBe('This is the post page')
await browser.back()
expect(await browser.waitForElementByCss('#home-page').text()).toBe(
'Home!'
)
})
}
)
})