@@ -9,21 +9,21 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
OF ANY KIND, either express or implied. See the License for the specific language
10
10
governing permissions and limitations under the License.
11
11
*/
12
- import '@spectrum-web-components/theme/sp-theme.js' ;
13
- import '@spectrum-web-components/theme/scale-medium.js' ;
14
- import '@spectrum-web-components/theme/theme-light.js' ;
15
- import '@spectrum-web-components/tabs/sp-tab.js' ;
16
- import '@spectrum-web-components/tabs/sp-tabs.js' ;
17
- import '@spectrum-web-components/tabs/sp-tab-panel.js' ;
18
- import '@spectrum-web-components/tabs/sp-tabs-overflow.js' ;
12
+ import { ActionButton } from '@spectrum-web-components/action-button' ;
19
13
import {
20
14
calculateScrollTargetForLeftSide ,
21
15
calculateScrollTargetForRightSide ,
22
16
Tab ,
23
17
Tabs ,
24
18
TabsOverflow ,
25
19
} from '@spectrum-web-components/tabs' ;
26
- import { ActionButton } from '@spectrum-web-components/action-button' ;
20
+ import '@spectrum-web-components/tabs/sp-tab-panel.js' ;
21
+ import '@spectrum-web-components/tabs/sp-tab.js' ;
22
+ import '@spectrum-web-components/tabs/sp-tabs-overflow.js' ;
23
+ import '@spectrum-web-components/tabs/sp-tabs.js' ;
24
+ import '@spectrum-web-components/theme/scale-medium.js' ;
25
+ import '@spectrum-web-components/theme/sp-theme.js' ;
26
+ import '@spectrum-web-components/theme/theme-light.js' ;
27
27
28
28
import { elementUpdated , expect , fixture , waitUntil } from '@open-wc/testing' ;
29
29
import {
@@ -32,8 +32,8 @@ import {
32
32
html ,
33
33
nothing ,
34
34
} from '@spectrum-web-components/base' ;
35
+ import { sendKeys , setViewport } from '@web/test-runner-commands' ;
35
36
import { repeat } from 'lit/directives/repeat.js' ;
36
- import { sendKeys , setUserAgent , setViewport } from '@web/test-runner-commands' ;
37
37
38
38
const RIGHT_BUTTON_SELECTOR = '.right-scroll' ;
39
39
const LEFT_BUTTON_SELECTOR = '.left-scroll' ;
@@ -179,11 +179,11 @@ describe('TabsOverflow', () => {
179
179
expect ( finalLeft ) . to . be . lessThanOrEqual ( initialLeft ) ;
180
180
} ) ;
181
181
182
- xit ( 'should scroll up to the last item and back in LTR' , async ( ) => {
183
- // setUserAgent is not currently supported by Playwright
184
- await setUserAgent (
185
- 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'
186
- ) ;
182
+ it ( 'should scroll up to the last item and back in LTR' , async ( ) => {
183
+ // TODO: run on iPhone as per https://github.com/adobe/spectrum-web-components/pull/4722
184
+ // await setUserAgent(
185
+ // 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'
186
+ // );
187
187
188
188
const el = await renderTabsOverflow ( {
189
189
count : 8 ,
@@ -213,11 +213,11 @@ describe('TabsOverflow', () => {
213
213
expect ( tabsOverflow [ 'overflowState' ] . canScrollRight ) . to . be . true ;
214
214
} ) ;
215
215
216
- xit ( 'should scroll up to the last item and back in RTL' , async ( ) => {
217
- // setUserAgent is not currently supported by Playwright
218
- await setUserAgent (
219
- 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'
220
- ) ;
216
+ it ( 'should scroll up to the last item and back in RTL' , async ( ) => {
217
+ // TODO: run on iPhone as per https://github.com/adobe/spectrum-web-components/pull/4722
218
+ // await setUserAgent(
219
+ // 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'
220
+ // );
221
221
222
222
const el = await renderTabsOverflow ( {
223
223
count : 8 ,
0 commit comments