Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cypress.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ export default defineConfig({
},
numTestsKeptInMemory: 5,
experimentalMemoryManagement: true,
experimentalFastVisibility: true,
})
5 changes: 3 additions & 2 deletions cypress/e2e/collective-share.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ describe('Collective Share', function() {

it('Allows sharing a collective', function() {
cy.loginAs('bob')
cy.visit('/apps/collectives', {
cy.visit({
url: '/apps/collectives',
onBeforeLoad(win) {
// navigator.clipboard doesn't exist on HTTP requests (in CI), so let's create it
if (!win.navigator.clipboard) {
Expand Down Expand Up @@ -126,7 +127,7 @@ describe('Collective Share', function() {
})
it('Opening unshared collective fails', function() {
cy.logout()
cy.visit(shareUrl, { failOnStatusCode: false })
cy.visit({ url: shareUrl, failOnStatusCode: false })
cy.get('.body-login-container').contains(/(File|Page|Share) not found/)
})
})
8 changes: 5 additions & 3 deletions cypress/e2e/page-share.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ describe('Page share', function() {
describe('page share', function() {
it('Allows sharing a page', function() {
cy.loginAs('bob')
cy.visit('/apps/collectives', {
cy.visit({
url: '/apps/collectives',
onBeforeLoad(win) {
// navigator.clipboard doesn't exist on HTTP requests (in CI), so let's create it
if (!win.navigator.clipboard) {
Expand Down Expand Up @@ -101,15 +102,16 @@ describe('Page share', function() {
})
it('Opening unshared page fails', function() {
cy.logout()
cy.visit(shareUrl, { failOnStatusCode: false })
cy.visit({ url: shareUrl, failOnStatusCode: false })
cy.get('.body-login-container').contains(/(File|Page|Share) not found/)
})
})

describe('page share with password protection', function() {
it('Allows sharing a page', function() {
cy.loginAs('bob')
cy.visit('/apps/collectives', {
cy.visit({
url: '/apps/collectives',
onBeforeLoad(win) {
// navigator.clipboard doesn't exist on HTTP requests (in CI), so let's create it
if (!win.navigator.clipboard) {
Expand Down
Loading
Loading