Skip to content

Commit

Permalink
adds new screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin-pc committed Sep 11, 2022
1 parent fa4f02f commit e1f98e2
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 13 deletions.
4 changes: 1 addition & 3 deletions cypress/e2e/base.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ describe('Basic tests', () => {
cy.findAllByTestId('featured-card').should('have.length', 4)
cy.findAllByTestId('category-card').should('have.length', 9)
cy.findByTestId('search-bar').should('exist')
cy.findAllByTestId('featured-card')
.first()
.contains('First Default Featured Link')
cy.findAllByTestId('featured-card').first().contains('Featured Link')

cy.clickSettings()
cy.getManagedConfig('default', 'preview')
Expand Down
10 changes: 5 additions & 5 deletions cypress/fixtures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
"url": "http://localhost:3000/configs/config.json",
"featured": [
{
"name": "First Default Featured Link",
"background": "/assets/card.png",
"name": "Featured Link",
"link": "https://designedbyashw.in/test/hiccup"
},
{
"name": "Another Feaured link",
"name": "Another Featured link",
"link": "https://designedbyashw.in/test/hiccup"
},
{
"name": "One more",
"link": "https://designedbyashw.in/test/hiccup"
},
{
"name": "Oh no!!!",
"link": "https://www.google.com/search?q=I%27m+Feeling+Curious&csf=b&ct=ifl&cad=2:curious&ei=iin8XpLlKJi80PEPi9GtyAo&ved=0ahUKEwiS0oCHs6vqAhUYHjQIHYtoC6kQnRsIDg&rct=j",
"name": "welcome to hiccup",
"background": "/assets/card.png",
"link": "https://github.com/ashwin-pc/hiccup",
"tags": "space separated tags"
}
],
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ declare namespace Cypress {
typeInSearchBar(test: string): Chainable<null>
screenshotPreviewImage(name: string): Chainable<null>
getManagedConfig(id?: string, action?: ConfigAction): Chainable<null>
blurSearch(): Chainable<null>

submitUrlInput(url: string): Chainable<null>
getEditLinkModal(): Chainable<null>
getCachedConfigs(): Chainable<null>
blurSearch(): Chainable<null>
}
}
8 changes: 4 additions & 4 deletions cypress/support/pageCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ Cypress.Commands.add('getManagedConfig', (id, action = 'preview') => {
}
})

Cypress.Commands.add('blurSearch', () => {
cy.get('body').type(`{esc}`)
})

// Not happy with these, refactor to be more useful

Cypress.Commands.add('submitUrlInput', (url: string) => {
Expand All @@ -57,7 +61,3 @@ Cypress.Commands.add('getCachedConfigs', () => {
Cypress.Commands.add('getEditLinkModal', () => {
cy.findByTestId('edit-link-title').parent()
})

Cypress.Commands.add('blurSearch', () => {
cy.get('body').click(5, 5)
})
Binary file modified docs/assets/config-manager-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/config-manager-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/edit-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/edit-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/hotkey-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/hotkey-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/main-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/main-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/search-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/search-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e1f98e2

Please sign in to comment.