Skip to content

Commit

Permalink
update snapshots for tests from 'dashboard-teams' suite
Browse files Browse the repository at this point in the history
  • Loading branch information
KateMaruk committed Dec 6, 2023
1 parent a2708e3 commit febf92c
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions pages/dashboard/team-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports.TeamPage = class TeamPage extends BasePage {
this.teamProjectsSpan = page.locator('div.stats-block .projects span.text');
this.teamFilesSpan = page.locator('div.stats-block .files span.text');
this.teamInfoSection = page.locator('div[class="block info-block"]');
this.teamNameLabel = page.locator('div.block.info-block div.name');
this.teamOwnerSection = page.locator('div[class="block owner-block"]');
this.teamStatsSection = page.locator('div[class="block stats-block"]');

Expand Down
1 change: 0 additions & 1 deletion tests/composition/composition-board.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ mainTest("CO-13 Add and edit Blur to board", async ({ page }) => {
});

mainTest("CO-14 Add, edit and delete Stroke to board",async ({ page }) => {
test.setTimeout(45000);
const mainPage = new MainPage(page);
await mainPage.clickCreateBoardButton();
await mainPage.clickViewportByCoordinates(100, 100);
Expand Down
1 change: 0 additions & 1 deletion tests/composition/composition-ellipse.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ mainTest("CO-120 Add and edit Blur to ellipse", async ({ page }) => {
});

mainTest("CO-121 Add, edit and delete Stroke to ellipse", async ({ page }) => {
test.setTimeout(45000);
const mainPage = new MainPage(page);
await mainPage.clickCreateEllipseButton();
await mainPage.clickViewportByCoordinates(100, 100);
Expand Down
1 change: 0 additions & 1 deletion tests/composition/composition-image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ mainTest("CO-229 Add, hide, unhide and delete Blur to image", async ({ page }) =
});

mainTest("CO-231 Add, edit and delete Stroke to image",async ({ page }) => {
test.setTimeout(45000);
const mainPage = new MainPage(page);
await mainPage.uploadImage("images/sample.jpeg");
await mainPage.clickViewportTwice();
Expand Down
1 change: 0 additions & 1 deletion tests/composition/composition-path.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ mainTest("CO-279 Add, hide, unhide, change type and delete Shadow to Path",async
});

mainTest("CO-280 Add and edit Shadow to path", async ({ page }) => {
test.setTimeout(50000);
const mainPage = new MainPage(page);
const colorPalettePopUp = new ColorPalettePopUp(page);
await mainPage.createDefaultOpenPath();
Expand Down
1 change: 0 additions & 1 deletion tests/composition/composition-rectangle.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ mainTest("CO-72 Add, hide, unhide and delete Blur to rectangle",async ({ page })
});

mainTest("CO-74 Add, edit and delete Stroke to rectangle",async ({ page }) => {
test.setTimeout(45000);
const mainPage = new MainPage(page);
await mainPage.clickCreateRectangleButton();
await mainPage.clickViewportTwice();
Expand Down
6 changes: 4 additions & 2 deletions tests/dashboard/dashboard-teams.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ dashboardTest(
dashboardTest(
"DA-114 Team Settings - upload team profile picture",
async ({ page }) => {
const team = "QA Team";
const team = random().concat('autotest');
const teamPage = new TeamPage(page);
await teamPage.createTeam(team);
await teamPage.isTeamSelected(team);
Expand All @@ -223,7 +223,9 @@ dashboardTest(
await teamPage.isInfoMessageDisplayed("Loading image…");
await teamPage.waitInfoMessageHidden();
await expect(teamPage.teamInfoSection).toHaveScreenshot(
"team-profile-image.png"
"team-profile-image.png", {
mask: [teamPage.teamNameLabel]
}
);
await teamPage.deleteTeam(team);
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit febf92c

Please sign in to comment.