Enables ContextIsolation

This commit is contained in:
Josh Perez 2023-01-12 19:24:59 -05:00 committed by GitHub
parent 4bbf5eb5d4
commit 9374832ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 1009 additions and 1073 deletions

View file

@ -43,13 +43,7 @@ describe('storage service', function needsName() {
const conversationStack = window.locator('.conversation-stack');
debug('Verifying that the group is pinned on startup');
await leftPane
.locator(
'_react=ConversationListItem' +
'[isPinned = true] ' +
`[title = ${JSON.stringify(group.title)}]`
)
.waitFor();
await leftPane.locator(`[data-testid="${group.id}"]`).waitFor();
debug('Unpinning group via storage service');
{
@ -60,24 +54,14 @@ describe('storage service', function needsName() {
timestamp: bootstrap.getTimestamp(),
});
await leftPane
.locator(
'_react=ConversationListItem' +
'[isPinned = false] ' +
`[title = ${JSON.stringify(group.title)}]`
)
.waitFor();
await leftPane.locator(`[data-testid="${group.id}"]`).waitFor();
}
debug('Pinning group in the app');
{
const state = await phone.expectStorageState('consistency check');
const convo = leftPane.locator(
'_react=ConversationListItem' +
'[isPinned = false] ' +
`[title = ${JSON.stringify(group.title)}]`
);
const convo = leftPane.locator(`[data-testid="${group.id}"]`);
await convo.click();
const moreButton = conversationStack.locator(
@ -120,8 +104,7 @@ describe('storage service', function needsName() {
debug('pinning contact=%d', i);
const convo = leftPane.locator(
'_react=ConversationListItem' +
`[title = ${JSON.stringify(contact.profileName)}]`
`[data-testid="${contact.toContact().uuid}"]`
);
await convo.click();