mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
3d6f256e33
commit
a3099b5cde
@ -14,7 +14,7 @@ describe('Credits', () => {
|
||||
cy.visit('/client/credits');
|
||||
|
||||
cy.get('body')
|
||||
.find('span')
|
||||
.find('[data-ref=meta-title]')
|
||||
.first()
|
||||
.should('contain.text', 'Credits');
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ context('Invoices', () => {
|
||||
cy.visit('/client/invoices');
|
||||
|
||||
cy.get('body')
|
||||
.find('span')
|
||||
.find('[data-ref=meta-title]')
|
||||
.first()
|
||||
.should('contain.text', 'Invoices');
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ context('Payment methods', () => {
|
||||
cy.visit('/client/payment_methods');
|
||||
|
||||
cy.get('body')
|
||||
.find('span')
|
||||
.find('[data-ref=meta-title]')
|
||||
.first()
|
||||
.should('contain.text', 'Payment Method');
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ context('Payments', () => {
|
||||
cy.visit('/client/payments');
|
||||
|
||||
cy.get('body')
|
||||
.find('span')
|
||||
.find('[data-ref=meta-title]')
|
||||
.first()
|
||||
.should('contain.text', 'Payments');
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ describe('Quotes', () => {
|
||||
cy.visit('/client/quotes');
|
||||
|
||||
cy.get('body')
|
||||
.find('span')
|
||||
.find('[data-ref=meta-title]')
|
||||
.first()
|
||||
.should('contain.text', 'Quotes');
|
||||
});
|
||||
|
@ -14,7 +14,8 @@ context('Recurring invoices', () => {
|
||||
it('should show reucrring invoices text', () => {
|
||||
cy.visit('/client/recurring_invoices');
|
||||
|
||||
cy.get('span')
|
||||
cy.get('body')
|
||||
.find('[data-ref=meta-title]')
|
||||
.first()
|
||||
.should('contain.text', 'Recurring Invoices');
|
||||
});
|
||||
|
@ -5,7 +5,7 @@
|
||||
</svg>
|
||||
</button>
|
||||
<div class="flex-1 px-3 md:px-8 flex justify-between items-center">
|
||||
<span class="text-xl text-gray-900">@yield('meta_title')</span>
|
||||
<span class="text-xl text-gray-900" data-ref="meta-title">@yield('meta_title')</span>
|
||||
<div class="flex items-center md:ml-6 md:mr-2">
|
||||
@if($multiple_contacts->count() > 1)
|
||||
<div class="relative inline-block text-left" x-data="{ open: false }">
|
||||
@ -23,7 +23,7 @@
|
||||
<div class="rounded bg-white shadow-xs">
|
||||
<div class="py-1">
|
||||
@foreach($multiple_contacts as $contact)
|
||||
<a data-turbolinks="false" href="{{ route('client.switch_company', $contact->hashed_id) }}" class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900">{{ $contact->company->present()->name }}</a>
|
||||
<a href="{{ route('client.switch_company', $contact->hashed_id) }}" class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900">{{ $contact->company->present()->name }}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
@ -26,6 +26,7 @@
|
||||
<div class="mx-auto px-4 sm:px-6 md:px-8">
|
||||
<div class="pt-4 py-6">
|
||||
@includeWhen(session()->has('success'), 'portal.ninja2020.components.general.messages.success')
|
||||
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user