Skip to content

Commit c7b17f9

Browse files
author
Hwashiang Yu
committed
MC-5363: Tabs Flakiness Causes Periodic MFTF Failures
- Resolved test failure due to incorrect index typing
1 parent 976f1d9 commit c7b17f9

File tree

2 files changed

+2
-0
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+2
-0
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/tabs/preview.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/tabs/preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export default class Preview extends PreviewCollection {
179179
public setActiveTab(index: number) {
180180
if (index !== null) {
181181
// Added to prevent mismatched fragment error caused by not yet rendered tab-item
182+
index = parseInt(index, 10);
182183
delayUntil(
183184
() => {
184185
$(this.element).tabs("option", "active", index);

0 commit comments

Comments
 (0)