Skip to content

Commit 946f649

Browse files
fix majority of cypress tests
1 parent d058e35 commit 946f649

7 files changed

Lines changed: 544 additions & 9 deletions

File tree

smoke-test/tests/cypress/cypress/e2e/auto_completeV2/v2_auto_complete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ describe("auto-complete", () => {
22
beforeEach(() => {
33
cy.setIsThemeV2Enabled(true);
44
cy.skipIntroducePage();
5+
cy.hideOnboardingTour();
56
cy.login();
67
// look for a dataset
78
cy.visit("/");

smoke-test/tests/cypress/cypress/e2e/ownershipV2/v2_manage_ownership.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe("manage ownership", () => {
77
const viewName = "Test View";
88
cy.login();
99
cy.goToOwnershipTypesSettings();
10-
cy.waitTextVisible("Platform");
10+
cy.waitTextVisible("Manage Ownership");
1111
cy.clickOptionWithTestId("create-owner-type");
1212
cy.get('[data-testid="ownership-type-name-input"]').clear("T");
1313
cy.get('[data-testid="ownership-type-name-input"]').type(

smoke-test/tests/cypress/cypress/e2e/settingsV2/v2_managing_groups.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ describe("create and manage group", () => {
1313
});
1414
it("add test user", () => {
1515
cy.visit("/settings/identities/users");
16-
cy.waitTextVisible("Platform");
16+
cy.waitTextVisible("Settings");
17+
cy.wait(1000);
1718
cy.clickOptionWithText("Invite Users");
1819
cy.waitTextVisible(/signup\?invite_token=\w{32}/).then(($elem) => {
1920
const inviteLink = $elem.text();
@@ -37,7 +38,7 @@ describe("create and manage group", () => {
3738

3839
it("create a group", () => {
3940
cy.visit("/settings/identities/groups");
40-
cy.waitTextVisible("Platform");
41+
cy.waitTextVisible("Settings");
4142
cy.clickOptionWithText("Create group");
4243
cy.waitTextVisible("Create new group");
4344
cy.get("#name").type(group_name);
@@ -52,7 +53,7 @@ describe("create and manage group", () => {
5253

5354
it("add test user to a group", () => {
5455
cy.visit("/settings/identities/users");
55-
cy.waitTextVisible("Platform");
56+
cy.waitTextVisible("Settings");
5657
cy.get(".ant-tabs-tab-btn").contains("Groups").click();
5758
cy.clickOptionWithText(group_name);
5859
cy.clickTextOptionWithClass(".ant-typography", group_name);
@@ -76,7 +77,7 @@ describe("create and manage group", () => {
7677

7778
it("update group info", () => {
7879
cy.visit("/settings/identities/groups");
79-
cy.waitTextVisible("Platform");
80+
cy.waitTextVisible("Settings");
8081
cy.clickOptionWithText(group_name);
8182
cy.clickOptionWithSpecificClass(".ant-typography", 0);
8283
cy.clickOptionWithTestId("EditOutlinedIcon");
@@ -94,7 +95,7 @@ describe("create and manage group", () => {
9495

9596
it("user verify to edit the discription", () => {
9697
cy.visit("/settings/identities/groups");
97-
cy.waitTextVisible("Platform");
98+
cy.waitTextVisible("Settings");
9899
cy.contains(`Test group EDITED ${test_id}`).should("be.visible").click();
99100
cy.get('[data-testid="EditOutlinedIcon"]').eq(1).click();
100101
cy.contains("Test group description").should("be.visible").type(" EDITED");
@@ -107,7 +108,7 @@ describe("create and manage group", () => {
107108

108109
it("user verify to add the owner", () => {
109110
cy.visit("/settings/identities/groups");
110-
cy.waitTextVisible("Platform");
111+
cy.waitTextVisible("Settings");
111112
cy.contains(`Test group EDITED ${test_id}`).should("be.visible").click();
112113
cy.get(".anticon.anticon-plus").click();
113114
cy.get('[aria-label="Close"]').should("be.visible");
@@ -125,7 +126,7 @@ describe("create and manage group", () => {
125126

126127
it("test User verify group participation", () => {
127128
cy.visit("/settings/identities/groups");
128-
cy.waitTextVisible("Platform");
129+
cy.waitTextVisible("Settings");
129130
cy.hideOnboardingTour();
130131
cy.clickOptionWithText(`Test group EDITED ${test_id}`);
131132
cy.get(".ant-tabs-tab").contains("Members").click();
@@ -134,7 +135,7 @@ describe("create and manage group", () => {
134135

135136
it("remove group", () => {
136137
cy.visit("/settings/identities/groups");
137-
cy.waitTextVisible("Platform");
138+
cy.waitTextVisible("Settings");
138139
cy.get(
139140
`[href="/group/urn:li:corpGroup:${test_id}"]`,
140141
).openThreeDotDropdown();

smoke-test/tests/cypress/cypress/support/commands.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ Cypress.Commands.add("goToOwnershipTypesSettings", () => {
9494
cy.waitTextVisible("Manage Ownership");
9595
});
9696

97+
Cypress.Commands.add("goToHomePagePostSettings", () => {
98+
cy.visit("/settings/posts");
99+
cy.waitTextVisible("Home Page Posts");
100+
});
101+
97102
Cypress.Commands.add("goToHomePagePostSettingsV2", () => {
98103
cy.visit("/settings/posts");
99104
cy.waitTestIdVisible("managePostsV2");

0 commit comments

Comments
 (0)