|
@@ -0,0 +1,30 @@
|
|
|
|
|
+context('Access to legacy private pages directly', () => {
|
|
|
|
|
+ const ssPrefix = 'access-to-legacy-private-pages-directly-';
|
|
|
|
|
+
|
|
|
|
|
+ let connectSid: string | undefined;
|
|
|
|
|
+
|
|
|
|
|
+ before(() => {
|
|
|
|
|
+ // login
|
|
|
|
|
+ cy.fixture("user-admin.json").then(user => {
|
|
|
|
|
+ cy.login(user.username, user.password);
|
|
|
|
|
+ });
|
|
|
|
|
+ cy.getCookie('connect.sid').then(cookie => {
|
|
|
|
|
+ connectSid = cookie?.value;
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ beforeEach(() => {
|
|
|
|
|
+ if (connectSid != null) {
|
|
|
|
|
+ cy.setCookie('connect.sid', connectSid);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ it('/_private-legacy-pages is successfully loaded', () => {
|
|
|
|
|
+ cy.visit('/_private-legacy-pages');
|
|
|
|
|
+
|
|
|
|
|
+ cy.getByTestid('search-result-list').should('be.visible');
|
|
|
|
|
+
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}-shown`, { capture: 'viewport' });
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+});
|