fix: 404 collisions (#15249)
* fix: 404 collisions * Added E2E test * Removed await * Attempting to fix E2E * fingers crossed Signed-off-by: zomars <[email protected]> * fix: e2e tests * fix: missing navigation to 404 page * fix: don't interrupt post login navigation * fix: Expect owner as possible host for RR events --------- Signed-off-by: zomars <[email protected]> Co-authored-by: Omar López <[email protected]>
This commit is contained in:
1 parent
ac3fb0a1cd
commit
5d01eb2f38
10 files changed
+17
-110
No files matched your search
@@ -10,7 +10,6 @@ import { test } from "../lib/fixtures";
|
||||
import {
|
||||
bookTimeSlot,
|
||||
doOnOrgDomain,
|
||||
NotFoundPageTextAppDir,
|
||||
selectFirstAvailableTimeSlotNextMonth,
|
||||
testName,
|
||||
} from "../lib/testUtils";
|
||||
@@ -184,10 +183,7 @@ test.describe("Bookings", () => {
|
||||
});
|
||||
|
||||
const event = await user.getFirstEventAsOwner();
|
||||
await page.goto(`/${user.username}/${event.slug}`);
|
||||
|
||||
// Shouldn't be servable on the non-org domain
|
||||
await expect(page.locator(`text=${NotFoundPageTextAppDir}`)).toBeVisible();
|
||||
await expectPageToBeNotFound({ page, url: `/${user.username}/${event.slug}` });
|
||||
|
||||
await doOnOrgDomain(
|
||||
{
|
||||
@@ -523,5 +519,5 @@ async function bookTeamEvent({
|
||||
|
||||
async function expectPageToBeNotFound({ page, url }: { page: Page; url: string }) {
|
||||
await page.goto(`${url}`);
|
||||
await expect(page.locator(`text=${NotFoundPageTextAppDir}`)).toBeVisible();
|
||||
await expect(page.getByTestId(`404-page`)).toBeVisible();
|
||||
}
|
||||
Reference in new issue
Block a user