Skip to content

Commit

Permalink
Run cypress container as user
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinika committed Jul 6, 2023
1 parent ea83966 commit 6988c9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: it

steps:
- run: docker run --rm --volume $PWD/cypress/screenshots:/videos:rw bash chown -R $UID /videos
- run: docker run --rm --volume $PWD/cypress/videos:/videos:rw bash chown -R $UID /videos
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
1 change: 1 addition & 0 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
entrypoint: ['bash']
stdin_open: true
tty: true
user: $USER
fusion:
depends_on:
- delta
Expand Down
4 changes: 4 additions & 0 deletions cypress/e2e/Studios.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ describe('Studios', () => {
});

it('saves changes made by user to table columns and shows them correctly', function() {
cy.intercept({ method: 'PUT', path: /resources/ }).as(
'saveDashboardRequest'
);
studioDetailsPage
.getAnyDashboard(Cypress.env('ORG_LABEL'), this.projectLabel)
.then(() => {
Expand All @@ -74,6 +77,7 @@ describe('Studios', () => {
})
.then(() => {
studioDetailsPage.openEditDashboard();
cy.wait('@saveDashboardRequest');

cy.findByLabelText(/Enable Filter/i).should('be.checked');
});
Expand Down

0 comments on commit 6988c9f

Please sign in to comment.