diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-12-14 18:55:21 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-12-14 18:55:21 +0100 |
| commit | 4e4d2eb25365be861e19f9756cf334ba2faa6911 (patch) | |
| tree | 794e85013799ceb1ae85710692b6c226ed18714c /tests/fixtures/wp-topics.fixture.ts | |
| parent | 7063b199b4748a9c354ed37e64cdc84c512f2c0c (diff) | |
test(e2e): fix broken Cypress tests
Since #93db24b MSW is used in Cypress tests to intercept requests. Some
tests relied on WordPress data so it becames broken. Tests are now
successful but there are still some issues with hydration because all
GraphQL requests are not intercepted and data are mixed between
WordPress and fixtures.
Diffstat (limited to 'tests/fixtures/wp-topics.fixture.ts')
| -rw-r--r-- | tests/fixtures/wp-topics.fixture.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/fixtures/wp-topics.fixture.ts b/tests/fixtures/wp-topics.fixture.ts index d790dea..50117cb 100644 --- a/tests/fixtures/wp-topics.fixture.ts +++ b/tests/fixtures/wp-topics.fixture.ts @@ -17,7 +17,7 @@ export const wpTopicsFixture: WPTopic[] = [ metaDesc: 'Et magnam id dicta iste molestiae illum officia provident.', title: 'est dolores tempore', }, - slug: '/eveniet-ut-quis', + slug: 'eveniet-ut-quis', title: 'eveniet ut quis', }, { @@ -50,7 +50,7 @@ export const wpTopicsFixture: WPTopic[] = [ 'Consequuntur aut excepturi dicta et qui quasi enim voluptas cum.', title: 'aliquid consectetur corporis', }, - slug: '/nisi-ut-facere', + slug: 'nisi-ut-facere', title: 'nisi ut facere', }, { @@ -72,7 +72,7 @@ export const wpTopicsFixture: WPTopic[] = [ metaDesc: 'Sed impedit quisquam voluptate voluptatem consequuntur.', title: 'porro autem sunt', }, - slug: '/iusto-non-consectetur', + slug: 'iusto-non-consectetur', title: 'iusto non consectetur', }, { @@ -93,7 +93,7 @@ export const wpTopicsFixture: WPTopic[] = [ wordsCount: 468, }, modified: '2021-09-15', - slug: '/possimus-temporibus-magni', + slug: 'possimus-temporibus-magni', title: 'possimus temporibus magni', }, ], @@ -112,7 +112,7 @@ export const wpTopicsFixture: WPTopic[] = [ metaDesc: 'Quaerat non ex inventore officiis amet.', title: 'in alias ipsa', }, - slug: '/non-repellendus-ipsam', + slug: 'non-repellendus-ipsam', title: 'non repellendus ipsam', }, ]; |
