From 738a699259345e47a81cba8d14beb5b9fd2d8b53 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 22 Sep 2020 10:52:13 +0900 Subject: Fix e2e test on option --- src/settings/components/form/BlacklistForm.tsx | 3 +++ src/settings/components/form/PartialBlacklistForm.tsx | 8 ++++++-- src/settings/components/form/SearchForm.tsx | 10 ++++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) (limited to 'src/settings/components/form') diff --git a/src/settings/components/form/BlacklistForm.tsx b/src/settings/components/form/BlacklistForm.tsx index d301f2c..6fb9eca 100644 --- a/src/settings/components/form/BlacklistForm.tsx +++ b/src/settings/components/form/BlacklistForm.tsx @@ -52,6 +52,7 @@ class BlacklistForm extends React.Component { data-index={index} type="text" name="url" + aria-label="URL" value={item.pattern} placeholder="example.com/mail/*" onChange={this.bindValue.bind(this)} @@ -64,6 +65,7 @@ class BlacklistForm extends React.Component { name="delete" onClick={this.bindValue.bind(this)} onBlur={this.props.onBlur} + aria-label="Delete" /> @@ -72,6 +74,7 @@ class BlacklistForm extends React.Component { diff --git a/src/settings/components/form/PartialBlacklistForm.tsx b/src/settings/components/form/PartialBlacklistForm.tsx index dcdd00c..b2da2bb 100644 --- a/src/settings/components/form/PartialBlacklistForm.tsx +++ b/src/settings/components/form/PartialBlacklistForm.tsx @@ -52,7 +52,7 @@ class PartialBlacklistForm extends React.Component { render() { return ( <> - + URL Keys @@ -62,12 +62,13 @@ class PartialBlacklistForm extends React.Component { return null; } return ( - + { data-index={index} type="text" name="keys" + aria-label="Keys" value={item.keys.join(",")} placeholder="j,k,," onChange={this.bindValue.bind(this)} @@ -89,6 +91,7 @@ class PartialBlacklistForm extends React.Component { @@ -99,6 +102,7 @@ class PartialBlacklistForm extends React.Component { diff --git a/src/settings/components/form/SearchForm.tsx b/src/settings/components/form/SearchForm.tsx index cc7061a..4bf0e02 100644 --- a/src/settings/components/form/SearchForm.tsx +++ b/src/settings/components/form/SearchForm.tsx @@ -54,7 +54,7 @@ class SearchForm extends React.Component { const value = this.props.value.toJSON(); return ( <> - + Name URL @@ -62,12 +62,13 @@ class SearchForm extends React.Component { {value.engines.map((engine, index) => { return ( - + { data-index={index} type="text" name="url" + aria-label="URL" placeholder="http://example.com/?q={}" value={engine[1]} onChange={this.bindValue.bind(this)} @@ -89,11 +91,14 @@ class SearchForm extends React.Component { data-index={index} type="radio" name="default" + aria-label="Default" checked={value.default === engine[0]} onChange={this.bindValue.bind(this)} /> + a @@ -104,6 +109,7 @@ class SearchForm extends React.Component { -- cgit v1.2.3