Skip to content

Commit d6bbd91

Browse files
committed
Fix pwa showcase test
1 parent 2a52b58 commit d6bbd91

File tree

4 files changed

+7
-20
lines changed

4 files changed

+7
-20
lines changed

app/content/layouts/showcase.html.erb

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/content/pages/pwa-showcase.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Progressive Web Apps on Rails Showcase
3-
layout: showcase
3+
layout: article
44
---
55
<section class="pwa:hidden">
66
<h2 class="anchor text-xl text-joy-text font-bold mb-2">How to use this resource</h2>

app/javascript/css/components/flash.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
transform: translateX(-50%);
77

88
width: max-content;
9+
}
910

10-
&__message {
11-
@apply text-sm p-4 text-white rounded-md font-semibold bg-joy-bg-active;
12-
animation: appear-then-fade 4s both;
13-
}
11+
.flash__message {
12+
@apply text-sm p-4 text-white rounded-md font-semibold bg-joy-bg-active;
13+
animation: appear-then-fade 4s both;
1414
}

spec/system/pwa_showcase_spec.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
end
99

1010
it "renders the Install to Homescreen button" do
11-
Flipper.enable(:pwa_showcase_navigation)
12-
13-
visit "/"
14-
15-
click_link "Progress Web Apps on Rails Showcase"
11+
visit "/pwa-showcase"
1612

1713
expect(page).to have_button("Install to Homescreen")
1814
end
@@ -23,11 +19,8 @@
2319
end
2420

2521
it "renders the Install to Homescreen button" do
26-
Flipper.enable(:pwa_showcase_navigation)
27-
28-
visit "/"
22+
visit "/pwa-showcase"
2923

30-
click_link "Progress Web Apps on Rails Showcase"
3124
click_link "Install to Homescreen"
3225

3326
expect(page).to have_content("PWA installation is not currently supported in Firefox on desktop.")

0 commit comments

Comments
 (0)