-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ismay
committed
Nov 16, 2023
1 parent
9e52bbc
commit 9bcb2d3
Showing
4 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Feature: Users should be able to navigate to the new job route | ||
|
||
Scenario: User clicks the new job button | ||
Given the user navigated to the job list page | ||
Given the user navigated to the list page | ||
Then there is a link to the new job page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Feature: Users should be able to navigate to the new queue route | ||
|
||
Scenario: User clicks the new queue button | ||
Given the user navigated to the list page | ||
Then there is a link to the new queue page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Given, Then } from 'cypress-cucumber-preprocessor/steps' | ||
|
||
Given('the user navigated to the list page', () => { | ||
cy.visit('/') | ||
cy.findByRole('heading', { name: 'Scheduled jobs' }).should('exist') | ||
}) | ||
|
||
Then('there is a link to the new queue page', () => { | ||
cy.findByRole('link', { name: 'New queue' }) | ||
.should('exist') | ||
.should('have.attr', 'href', '#/queue/add') | ||
}) |