Skip to content

Commit c7f895e

Browse files
devvaannshabose
authored andcommitted
fix: remove redundant checks
1 parent 8a7225a commit c7f895e

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

test/spec/Extn-Tabbar-integ-test.js

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,6 @@ define(function (require, exports, module) {
474474
},
475475
"Tab bar to become visible"
476476
);
477-
478-
// Verify the tab bar is visible
479-
expect($("#phoenix-tab-bar").is(":visible")).toBe(true);
480477
});
481478

482479
it("should hide tab bar when the feature is disabled", async function () {
@@ -490,9 +487,6 @@ define(function (require, exports, module) {
490487
},
491488
"Tab bar to become hidden"
492489
);
493-
494-
// Verify the tab bar is not visible
495-
expect($("#phoenix-tab-bar").is(":visible")).toBe(false);
496490
});
497491

498492
it("should show working set when the option is enabled", async function () {
@@ -506,9 +500,6 @@ define(function (require, exports, module) {
506500
},
507501
"Working set to become visible"
508502
);
509-
510-
// Verify the working set is visible
511-
expect($("#working-set-list-container").hasClass("working-set-hidden")).toBe(false);
512503
});
513504

514505
it("should hide working set when the option is disabled", async function () {
@@ -522,9 +513,6 @@ define(function (require, exports, module) {
522513
},
523514
"Working set to become hidden"
524515
);
525-
526-
// Verify the working set is not visible
527-
expect($("#working-set-list-container").hasClass("working-set-hidden")).toBe(true);
528516
});
529517
});
530518

@@ -595,9 +583,6 @@ define(function (require, exports, module) {
595583
"Working set to become hidden"
596584
);
597585

598-
// Verify the working set is hidden
599-
expect($("#working-set-list-container").hasClass("working-set-hidden")).toBe(true);
600-
601586
// Click the configure working set button again
602587
$configButton.click();
603588

@@ -621,9 +606,6 @@ define(function (require, exports, module) {
621606
},
622607
"Working set to become visible"
623608
);
624-
625-
// Verify the working set is visible
626-
expect($("#working-set-list-container").hasClass("working-set-hidden")).toBe(false);
627609
});
628610

629611
it("should toggle tab bar visibility when 'Show file tab bar' option is clicked", async function () {
@@ -661,9 +643,6 @@ define(function (require, exports, module) {
661643
"Tab bar to become hidden"
662644
);
663645

664-
// Verify the tab bar is hidden
665-
expect($("#phoenix-tab-bar").is(":visible")).toBe(false);
666-
667646
// Click the configure working set button again
668647
$configButton.click();
669648

@@ -687,9 +666,6 @@ define(function (require, exports, module) {
687666
},
688667
"Tab bar to become visible"
689668
);
690-
691-
// Verify the tab bar is visible
692-
expect($("#phoenix-tab-bar").is(":visible")).toBe(true);
693669
});
694670
});
695671

@@ -887,10 +863,6 @@ define(function (require, exports, module) {
887863
expect(getPaneTabCount("first-pane")).toBe(firstPaneFiles.length - 1);
888864
expect(getPaneTabCount("second-pane")).toBe(secondPaneFiles.length + 1);
889865

890-
// Verify the tab is now in the second pane
891-
expect(tabExistsInPane(firstPaneFiles[0], "first-pane")).toBe(false);
892-
expect(tabExistsInPane(firstPaneFiles[0], "second-pane")).toBe(true);
893-
894866
// Clean up - close all files and reset to single pane
895867
await testWindow.closeAllFiles();
896868
MainViewManager.setLayoutScheme(1, 1);
@@ -1026,10 +998,6 @@ define(function (require, exports, module) {
1026998
expect(getPaneTabCount("first-pane")).toBe(firstPaneFiles.length - 1);
1027999
expect(getPaneTabCount("second-pane")).toBe(1);
10281000

1029-
// Verify the tab is now in the second pane
1030-
expect(tabExistsInPane(firstPaneFiles[0], "first-pane")).toBe(false);
1031-
expect(tabExistsInPane(firstPaneFiles[0], "second-pane")).toBe(true);
1032-
10331001
// Clean up - close all files and reset to single pane
10341002
await testWindow.closeAllFiles();
10351003
MainViewManager.setLayoutScheme(1, 1);
@@ -2478,10 +2446,6 @@ define(function (require, exports, module) {
24782446
"Both tab bars to disappear"
24792447
);
24802448

2481-
// Verify both tab bars are hidden
2482-
expect($("#phoenix-tab-bar").is(":visible")).toBe(false);
2483-
expect($("#phoenix-tab-bar-2").is(":visible")).toBe(false);
2484-
24852449
// Clean up - close all files and reset to single pane
24862450
await testWindow.closeAllFiles();
24872451
MainViewManager.setLayoutScheme(1, 1);

0 commit comments

Comments
 (0)