Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Jul 28, 2023
1 parent 7772573 commit 1466d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decidim-core/spec/lib/form_builder_spec.rb
Expand Up @@ -353,14 +353,14 @@ def organization
let(:options) { {} }

it "renders the input type password" do
expect(output).to eq('<label for="resource_password">Password<input autocomplete="off" type="password" name="resource[password]" id="resource_password" /></label>')
expect(output).to eq('<label for="resource_password">Password<input autocomplete="off" class="input-group-field" type="password" name="resource[password]" id="resource_password" /></label>')
end

context "when autocomplete attribute is defined" do
let(:options) { { autocomplete: "new-password" } }

it "renders the input type password with given autocomplete attribute" do
expect(output).to eq('<label for="resource_password">Password<input autocomplete="new-password" type="password" name="resource[password]" id="resource_password" /></label>')
expect(output).to eq('<label for="resource_password">Password<input autocomplete="new-password" class="input-group-field" type="password" name="resource[password]" id="resource_password" /></label>')
end
end
end
Expand Down

0 comments on commit 1466d1c

Please sign in to comment.