Skip to content

Commit

Permalink
Fix document public link revoke test
Browse files Browse the repository at this point in the history
Signed-off-by: duje qa <dujeqa@gmail.com>
  • Loading branch information
dujes8 committed Apr 15, 2024
1 parent 77590be commit c611470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/sanity/tests/documents/documents-link.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ test.describe('Documents link tests', () => {

const documentContentClearPage = new DocumentContentPage(clearPage)
await documentContentClearPage.checkDocumentTitle(publicLinkDocument.title)
expect(clearPage.url()).toContain('guest')
})

await test.step('Revoke guest access to the document', async () => {
Expand All @@ -55,6 +54,7 @@ test.describe('Documents link tests', () => {
await test.step('Check guest access to the document after the revoke', async () => {
await clearPage.goto(link)
await expect(clearPage.locator('div.antiPopup > h1')).toHaveText('Public link was revoked')
expect(clearPage.url()).toContain('guest')
})
})
})
4 changes: 2 additions & 2 deletions tests/sanity/tests/workspace/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ test.describe('Workspace tests', () => {
const page2 = await browser.newPage()

const loginPage2 = new LoginPage(page2)
await loginPage2.goto()
await loginPage2.visitLoginRoute()
await loginPage2.linkSignUp.click()

const newUser2: SignUpData = {
Expand All @@ -229,7 +229,7 @@ test.describe('Workspace tests', () => {

test('Create workspace with LastToken in the localStorage', async ({ page, browser }) => {
const loginPage = new LoginPage(page)
await loginPage.goto()
await loginPage.visitLoginRoute()
await loginPage.login(PlatformUser, '1234')

const selectWorkspacePage = new SelectWorkspacePage(page)
Expand Down

0 comments on commit c611470

Please sign in to comment.