Skip to content

Commit 676a527

Browse files
Revert "tmp"
This reverts commit 3f091dd1ac02c0b00c66d9580d63b11fa2c73746.
1 parent 5d491d9 commit 676a527

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

react_on_rails_pro/spec/dummy/e2e-tests/fixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const redisReceiverPageController = redisControlledTest.extend<RedisReceiverCont
6868
},
6969
matchPageSnapshot: async ({ page }, use) => {
7070
await use(async (snapshotPath) => {
71-
await expect(page.locator('.redis-receiver-container:visible')).toBeVisible({ timeout: 10000 });
71+
await expect(page.locator('.redis-receiver-container:visible')).toBeVisible();
7272
await expect(page.locator('.redis-receiver-container:visible').first()).toMatchAriaSnapshot({
7373
name: `${snapshotPath}.aria.yml`,
7474
});

react_on_rails_pro/spec/dummy/e2e-tests/streaming.spec.ts

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,24 @@ import {
2424
],
2525
] as const
2626
).forEach(([pageName, test]) => {
27-
[...Array(parseInt(process.env.REPEATS ?? '1')).keys()].forEach(index => {
28-
test(`incremental rendering of page: ${pageName},no:${index}`, async ({ matchPageSnapshot, sendRedisItemValue }) => {
29-
await matchPageSnapshot('stage0');
27+
test(`incremental rendering of page: ${pageName}`, async ({ matchPageSnapshot, sendRedisItemValue }) => {
28+
await matchPageSnapshot('stage0');
3029

31-
await sendRedisItemValue(0, 'Incremental Value1');
32-
await matchPageSnapshot('stage1');
30+
await sendRedisItemValue(0, 'Incremental Value1');
31+
await matchPageSnapshot('stage1');
3332

34-
await sendRedisItemValue(3, 'Incremental Value4');
35-
await matchPageSnapshot('stage2');
33+
await sendRedisItemValue(3, 'Incremental Value4');
34+
await matchPageSnapshot('stage2');
3635

37-
await sendRedisItemValue(1, 'Incremental Value2');
38-
await matchPageSnapshot('stage3');
36+
await sendRedisItemValue(1, 'Incremental Value2');
37+
await matchPageSnapshot('stage3');
3938

40-
await sendRedisItemValue(2, 'Incremental Value3');
41-
await matchPageSnapshot('stage4');
39+
await sendRedisItemValue(2, 'Incremental Value3');
40+
await matchPageSnapshot('stage4');
4241

43-
await sendRedisItemValue(4, 'Incremental Value5');
44-
await matchPageSnapshot('stage5');
45-
});
46-
})
42+
await sendRedisItemValue(4, 'Incremental Value5');
43+
await matchPageSnapshot('stage5');
44+
});
4745

4846
test(`early hydration of page: ${pageName}`, async ({
4947
page,

react_on_rails_pro/spec/dummy/spec/rails_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,4 @@
171171
Capybara.asset_host = "http://localhost:3000"
172172
Capybara.app_host = "http://localhost:3000"
173173
Capybara.run_server = false
174-
Capybara.save_path = "tmp/capybara#{ENV['TEST_NO']}"
175174
end

react_on_rails_pro/spec/dummy/spec/system/integration_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ def change_text_expect_dom_selector(dom_selector, expect_no_change: false)
411411
expect(page).not_to have_text "Loading branch2"
412412
expect(page).not_to have_text(/Loading branch1 at level \d+/)
413413
expect(page).to have_text(/branch1 \(level \d+\)/, count: 5)
414-
screenshot_and_save_page
415414
end
416415

417416
it "doesn't hydrate status component if packs are not loaded" do

0 commit comments

Comments
 (0)