Skip to content

Commit

Permalink
test: adjust sample contact exporter case change (#10467)
Browse files Browse the repository at this point in the history
* test: adjust sample case change

---------

Co-authored-by: v-ivanchen_microsoft <v-ivanchen@microsoft.com>
  • Loading branch information
ayachensiyuan and v-ivanchen_microsoft authored Dec 1, 2023
1 parent 4319008 commit 0cd6875
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/tests/scripts/randomCases.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"sample-localdebug-proactive-message",
"sample-localdebug-assistant-dashboard",
"basic-tab-debug-upgrade-debug",
"basic-tab-upgrade-debug",
"bot-debug-upgrade-debug",
"bot-upgrade-debug"
]
Expand Down Expand Up @@ -67,7 +66,8 @@
"sample-localdebug-bot-sso",
"sample-localdebug-dice-roller",
"sample-localdebug-chef-bot",
"sample-localdebug-large-scale-notification"
"sample-localdebug-large-scale-notification",
"basic-tab-upgrade-debug"
]
},
{
Expand Down
10 changes: 6 additions & 4 deletions packages/tests/src/utils/playwrightOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ export async function validateContact(

await frame?.waitForSelector(`div:has-text("${options?.displayName}")`);
});
page.waitForTimeout(1000);
await page.waitForTimeout(10000);

// verify add person
await addPerson(frame, options?.displayName || "");
Expand Down Expand Up @@ -1984,10 +1984,12 @@ export async function addPerson(
displayName: string
): Promise<void> {
console.log(`add person: ${displayName}`);
const input = await frame?.waitForSelector("input#people-picker-input");
const input = await frame?.waitForSelector("input#control");
await input?.click();
await input?.type(displayName);
const item = await frame?.waitForSelector(`span:has-text("${displayName}")`);
const item = await frame?.waitForSelector(
`ul#suggestions-list div:has-text("${displayName}")`
);
await item?.click();
await frame?.waitForSelector(
`div.table-area div.line1:has-text("${displayName}")`
Expand All @@ -2000,7 +2002,7 @@ export async function delPerson(
): Promise<void> {
console.log(`delete person: ${displayName}`);
await frame?.waitForSelector(
`li div.details.small div:has-text("${displayName}")`
`li.selected-list-item div:has-text("${displayName}")`
);

const closeBtn = await frame?.waitForSelector('li div[role="button"]');
Expand Down

0 comments on commit 0cd6875

Please sign in to comment.