Skip to content

Commit

Permalink
Update login scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora committed Jul 18, 2024
1 parent c20c153 commit d7872c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package com.tmail.robots;

import static org.junit.Assert.assertTrue;

import java.util.regex.Pattern;

import com.microsoft.playwright.Page;
import com.tmail.base.CoreRobot;

Expand All @@ -13,16 +9,6 @@ public MailboxDashboardRobot(Page page) {
super(page);
}

public void clickSentMailbox() {
page.getByText("Sent").waitFor();
page.waitForTimeout(1000);
page.getByText("Sent").click();
}

public void checkIfThereAreMoreThanOneEmailSentBy(String username) {
assertTrue(page.getByLabel(Pattern.compile(username)).all().size() > 1);
}

public void openComposer() {
page.getByText("Compose").click();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ public void execute(Page page) {
loginRobot.clickLogin();

mailboxDashboardRobot.waitUntilExactLabelIsVisible("Compose");

mailboxDashboardRobot.clickSentMailbox();

testUtils.waitFor(2, page);

mailboxDashboardRobot.checkIfThereAreMoreThanOneEmailSentBy(username);
}

}

0 comments on commit d7872c8

Please sign in to comment.